Spain's King Felipe VI has signed a decree dissolving parliament and calling elections for June 26 after deputies elected in an inconclusive December election failed to agree on a new prime minister.

The king signed the decree Tuesday in the presence of parliament speaker Patxi Lopez after the May 2 midnight deadline for installing a new government passed. Spain has never had to repeat elections.

Spain has been in a political stalemate, governed by a caretaker government with conservative Popular Party leader Mariano Rajoy as prime minister since Dec. 20, when newcomer parties Podemos and Ciudadanos upset the longstanding dominance of the Popular Party and Socialists.

No political party won enough seats to form a government and none was able to reach a sufficiently strong coalition deal.