Czech Republic–Slovakia relations
Before 1918, both countries were part of Austria–Hungary. However, after the Ausgleich of 1867 Czechia belonged to the Austrian Empire while Slovakia belonged to the administratively separate Kingdom of Hungary, and between 1918 and December 31, 1992, both countries were part of Czechoslovakia. 
Both countries established diplomatic relations on January 1, 1993. These international relations are usually referred to or described as "very good", "cordial", and "above standard" in the media. When a Czech or Slovak president is inaugurated, very often his first international visit is to the former part of the common country. The same custom applies to newly elected prime ministers of the Czech Republic and Slovakia.
Hungary–Slovakia relations
After the first break-up of Czechoslovakia in March 1939, Hungary was the first state which officially recognized the independent Slovakia. Subsequently, Hungary and Slovakia established embassies in Bratislava and Budapest and kept diplomatic relations during the World War Two. Despite a formal alliance inside the Berlin pact (1940) and a common war against the Anti-Hitler coalition, Slovak-Hungarian political relations maintained on the brink of war due to the frontier dispute and the oppression of Slovak minority in Hungary and Hungarian minority in Slovakia. The restoration of Czechoslovakia and the liquidation of the independent Slovakia in 1945 led to the end of the first period of Hungary-Slovakia's relations.