If a king and queen of a kingdom die without any family members being there to take their place how is a new king 'elected'?

by Cactusmn
partyinplatypus

Can you specify the time period and location that you are asking about? This question is so broad it is unlikely that someone will answer it as it is.