At the 2020 Summer Olympics, Ostapenko was a flagbearer for Latvia alongside basketball player Agnis Čavars and entered the singles and doubles tournaments at the Games. Ostapenko was defeated in the first round in the singles tournament after she lost to Elena Vesnina in three sets. She and her partner Anastasija Sevastova also lost in the first round of the doubles tournament to Australia's Samantha Stosur and Ellen Perez.