>> The Pope was a king a military ruler up until the 1800s. <<
Technically, he still is as much of a "king" as he ever was. The Papal states just shrank a lot. But they were never anything to sneeze at.
>> Priests and Popes used to be able to get married. <<
The last married Pope was Peter.
You mean Peter, the man who Jesus himself made head of his Church?