Task: Text Categorization
Input (English): This ruler's first wife was Eudoxia Lopukhina, but he forced her to become a nun ten years after their marriage. The Bulavin Rebellion occurred during this man's reign. This ruler gave a portrait of himself as a gift to William III, and established his country's first naval base, which was named Taganrog. This ruler went on a tour in the West with his "Grand Embassy," and upon his return, he imposed a beard tax on his people. He won the Battle of Poltava, forcing Charles XII to flee into the Ottoman Empire. For 10 points, name this Russian tsar who won the Great Northern War and built St. Petersburg.
Output (English): History