On 2 December 1975, after taking control of the country, the Pathet Lao government under Kaysone Phomvihane renamed the country as the "Lao People's Democratic Republic" and signed agreements giving Vietnam the right to station armed forces and to appoint advisers to assist in overseeing the country. The close ties between Laos and Vietnam were formalised via a treaty signed in 1977, which has since provided direction for Lao foreign policy, and provides the basis for Vietnamese involvement at all levels of Lao political and economic life. Laos was requested in 1979 by Vietnam to end relations with the People's Republic of China, leading to isolation in trade by China, the United States, and other countries. In 1979, there were 50,000 PAVN troops stationed in Laos and as many as 6,000 civilian Vietnamese officials including 1,000 directly attached to the ministries in Vientiane.