Sudden burn when I pee ?

Yesterday I woke up wanting to pee so bad and when  I went it burned so bad afterwards  .. During the day it was normal . Right now it's 3:30 in the morning and I woke up wanting to go pee and I'm here sitting down in the toilet cause it burned . ... What is it ?