To obtain a Flygon, you need to catch a Trapinch and evolve it. Trapinch can be found in various locations in different Pokémon games, such as deserts or caves. Once you have a Trapinch, level it up to a certain level (usually level 35) to evolve it into Flygon.