Ratu Kuning was the sovereign queen of Patani in 1635–1688. Her name means "the Yellow Queen" in English. She succeeded her mother, Queen Raja Ungu. She was the last of four female rulers to have ruled in succession in the Patani Kingdom since 1584. She is the last queen regnant who is acknowledged as legitimate in the Patani chronicles. As Patani became less internationally attractive for traders in the late 17th century, sources about Patani history are scarce in that period. There is dispute over when her rule ended, and who succeeded her.
After the war between Patani and Ayutthaya, about 18 months in 1635. Raya Ungu died. Princess Kuning continued to reign in Patani after Mother. Ayutthaya also prepared to go to war again in 1636. With the fact that she had a different habit than a mother, she did not want to continue the war. She restored the relationship with Ayutthaya again. After the war, Yang di-Pertuan Besar returned to Johor. He asked Yang di-Pertuan Muda, his brother and mother to stay in Patani. To help her work Until Kuning reigns. Yang di-Pertuan Muda is a Playboy and knows that his older brother is incompetent about women. In the end, he did something shameful. He has raped Kuning. Kuning then had to be the secret wife of Yang di-Pertuan Muda. After that, he left Kuning to fall in love with a new one. She is Dang Sirat, royal orchestra's singer, who has ugliness but your voice is beautiful and she has a charming magic. She wants everything she wants, just asking from the prince. After the prince appointed her as Encik Puan. The nobles were impatient with their behavior and sympathized with Ratu Kuning. They therefore planned to assassinate the prince and Encik Puan. But Ratu Kuning has to say that no matter what, must spare the prince. The prince was heavily hunted by the people. Finally, when he fled to the Bukit Tabih village. He sat under the rose apple tree with Encik Puan. He suddenly drew her dagger to stab her death. Then he buried her at the foot of the hill. After that he fled to Saiburi. When Ratu Kuning knew that he was there, she told Bendahara, ruler of Saiburi to arrange a ship to send him to Johor.