When athletes march in the Olympic opening ceremonies Friday night in Rio de Janeiro, some of them will be donning the national uniforms of countries theyтАЩre not actually from.

For an event that represents so much  national pride, where victories or defeats live in lore for decades, many athletes will represent another country, either because of heritage or because it may be the only way they could compete in the games.

But is switching nationalities just to compete in the games in the Olympic spirit?

Take pole vaulter Giovanni Lanaro. He was born, raised, educated, and trained in southern California, but in Rio heтАЩll be competing for Mexico. While he is an American, his mother was born in Mexico, and the Mexican national team only requires that you have Mexican heritage in order to compete for them.

тАЬWhat's wrong with being proud about competing for Mexico?тАЭ he told the Los Angeles Times. тАЬI don't see anything wrong with it.тАЭ

Lanaro isnтАЩt the only American competing for Mexico in the Olympics. He joins a womenтАЩs basketball player, a wrestler, and five boxers.

The Olympics are where the worldтАЩs best athletes compete. Some teams, like the U.S., are full to the brim with top talent. Some of the best American athletes are inevitably left off the Team USA roster, even if they can compete on the world stage.

Lanaro is competing for another country because of his pride in his heritage. But he is also competing for a national team that could use his talent. The same can be said for runners David Torrence for Peru, Alexi Pappas for Greece, and Peter Callahan for Belgium, who are all Americans with ancestors born abroad. As Torrence put it to RunnerтАЩs World:

It boils down to why do I run? I love competing and racing and everything involved in that process, but I also really love to work with kids, inspire youth, and I think I am a part of a movement to get people running. In the U.S., thereтАЩs going to be a full team of people in every event in almost every sport. ThereтАЩs no shortage of heroes or role models out there. But in Peru, theyтАЩre not sending full teams, theyтАЩre not sending a ton of athletes, not only in track and field, but across all sports.

And if an athlete has the talent, why be left out of the Olympics? Peter Spiro ofSlate argued before the 2014 Winter Olympics:

It makes more sense to allow free Olympic association, with athletes playing for any team that will have them. The Olympic Charter notes that тАЬthe Olympics are competitions between athletes in individual or team events and not between countries.тАЭ ThatтАЩs exactly right. We donтАЩt require our major-league ballplayers to hail from the cities they play for, so why should we demand anything different of our Olympic athletes?

Follow the story lines of past Olympics and you find they arenтАЩt just about countries, like the U.S. hockey victory over the Soviet Union in 1980, but also about people, like Michael PhelpsтАЩs record 22 medals.

Callahan, the Belgian olympian, takes an almost socialistic attitude toward the Olympics, saying athletes should тАЬrightfully be distributed around the world and make those championships even better, even more competitive, even more exciting.тАЭ

The Olympic Charter requires only that an athlete be a national of the country for which he or she is competing. If they want to compete for a different nation, it has to be three years after they last competed for their country of origin. Becoming a national is not difficult for a talented athlete.

But there is a dark side to trying to distribute talented athletes to other countries. As Foreign Policy wrote in 2014, тАЬopportunism knows no borders.тАЭ They write:

Qatar, meanwhile, invests heavily in athletes from both Kenya and Bulgaria. In 2000, QatarтАЩs government bought an entire Bulgarian weightlifting team тАФ eight athletes in total тАФ in exchange for citizenship and a little over $1 million. In 2003, it also reportedly bought two Kenyan long-distance runners: Stephen Cherono and Albert Chepkurui, who duly became Qatari Olympians Saif Saeed Shaheen and Ahmad Hassan Abdullah (neither Cherono nor Chepkurui were actually Muslim).

Azerbaijan, for its part, has heavily recruited foreign-born athletes; half of its 50-person national team in the 2012 Olympics were naturalized citizens. Great BritainтАЩs Olympic team in 2012 had 60 foreign-born athletes, who were labeledтАЬPlastic BritsтАЭ by The Telegraph.

The U.S. even takes place in the practice. During the 2008 games, the U.S. hurried citizenship status for a Polish kayaker, a Chinese table-tennis player, a triathlete from New Zealand, a Kenyan distance runner, and an Australian equestrian, among many others who qualify for EB-1 visas for people of тАЬextraordinaryтАЭ abilities. Importing athletes has worked for the U.S., producing eight medals between 1992 and 2004, according to The New York Times.

While competing for a different country can raise an athleteтАЩs international profile, it could lead to criticism, as well. When South Dakota native and WNBA star Becky Hammon decided to play basketball for Russia during the 2008 Olympics, The Houston Chronicle asked, тАЬIs Hammon a traitor?тАЭ

U.S. womenтАЩs coach Anne Donovan even said, тАЬIf you play in this country, live in this country, and you grow up in the heartland and you put on a Russian uniform, you are not a patriotic person in my mind.тАЭ (The U.S. would beat Russia in the semifinals and eventually won gold. Russia won bronze.)

Jacques Rogge, the former International Olympic Committee president, had his own reservations about athletes changing nationalities. He said in 2012, тАЬWe cannot oppose it because itтАЩs a sovereignty matter, but let me tell you very frankly: I donтАЩt love that.тАЭ

In the first modern Olympic games in 1896 in Athens, athletes by and large were not grouped by nations. Hungarian athletes were the only ones who competed under a national banner. It was a competition among 280 athletes in 43 events. It was not a competition among nations, even if they came from 14 different nations.

In this Olympic games, 11,000 athletes will compete in 306 events under the banner of 206 nations. In the eyes of the athletes competing under the flag of a country thatтАЩs not home, theyтАЩre competing in the Olympic spirit as much as anyone else