Yangon is in a place also known as an enclave.
Yangon ( ရန က န , MLCTS rankun mrui , [ jàɴɡòʊɴ mjo̰ ] ; formerly known as Rangoon , literally : `` End of Strife '' ) is the capital of the Yangon Region of Myanmar , also known as Burma . Yangon served as the capital of Myanmar until 2006 , when the military government relocated the capital to the purpose-built city of Naypyidaw in central Myanmar .