"The King is dead. Long live the king," is the cry traditionally heard, or said upon the death of a british monarch, queen being used instead of king when appropriate. Its first use is unknown, but is probably thirteenth century. It refers to the fact that when a monarch dies the next in line is instantly the ruler of the kingdom.
The phrase may be used on the same occasion in other monarchies.