Extract the answer to the question from the following context. Question: Who brought the kingdom of Bithynia to an end? Context: The Bithynians were a Thracian people living in northwest Anatolia. After Alexander's conquests the region of Bithynia came under the rule of the native king Bas, who defeated Calas, a general of Alexander the Great, and maintained the independence of Bithynia. His son, Zipoetes I of Bithynia maintained this autonomy against Lysimachus and Seleucus I, and assumed the title of king (basileus) in 297 BCE. His son and successor, Nicomedes I, founded Nicomedia, which soon rose to great prosperity, and during his long reign (c. 278 – c. 255 BCE), as well as those of his successors, the kingdom of Bithynia held a considerable place among the minor monarchies of Anatolia. Nicomedes also invited the Celtic Galatians into Anatolia as mercenaries, and they later turned on his son Prusias I, who defeated them in battle. Their last king, Nicomedes IV, was unable to maintain himself against Mithridates VI of Pontus, and, after being restored to his throne by the Roman Senate, he bequeathed his kingdom by will to the Roman republic (74 BCE).
Answer:
Nicomedes IV