The Socialist Republic of Romania (Romanian: Republica Socialistă România, RSR) was a Marxist–Leninist one-party communist state that existed officially in Romania from 1947 to 1989. From 1947 to 1965, the state was known as the Romanian People's Republic (Republica Populară Romînă, RPR). The country was an Eastern Bloc state and a member of the Warsaw Pact with a dominant role for the Romanian Communist Party enshrined in its constitutions. Geographically, Romania bordered the Black Sea to the east; the Soviet Union (via the Ukrainian and Moldavian SSRs) to the north and east; Hungary and Yugoslavia to the west and Bulgaria to the south.