There isn’t an airport next to Ouro Preto, so in order to get to Ouro Preto by airplane from São Paulo, Rio de Janeiro, among other Brazilian cities, or from outside Brazil directly, you need to fly to the international airport of Belo Horizonte (capital of the Minas Gerais state), the Tancredo Neves International Airport – Confins, and arrange for ground transport to Ouro Preto.
From the Tancredo Neves International Airport – Confins (https://www.aeroportoconfins.
Alternatively, you can take a taxi or bus (Airport Connection) to the central bus station in Belo Horizonte, from where you can take a bus to Ouro Preto.
Also, you can hire transportation services from tourism agencies. For more details: https://turismoouropreto.com/