spain established a diplomatic relations with malaysia on 12 may 1967 and both the malaysian and spanish embassy were opened in 1986. a first state visit was made by the malaysian ninth yang di-pertuan agong of azlan shah in july 1992 while the king of spain juan carlos with queen sofía visit malaysia on 4 april 1995.