Sri Maharaja Samaragrawira or also known as Rakai Warak was a ruler of the Medang Kingdom of Central Java from approximately 800 to 819. This name is found in the list of kings of Medang in the Mantyasih inscription.
One theory put forward by historian Slamet Muljana suggests that the original name is Samaragrawira, the father of Balaputradewa, King of Srivijaya.