Urinary tract infection or inflammation of the urethra. What will help is drinking water with bicarbonate of soda - baking soda. Then prepare another glass to continue sipping for the next few hours. When you get that burning sensation it is usually from inflammation and that inflammation tends to be acidic, so it after burn.
Burning after I pee, but NOT UTI...
Drinking the bicarb in water helps to alkalize your urine and reduce the inflammation. If it does not go away after hours, then you must see a doctor. It can also be irritation from too tight pants, irritation from detergent left in the underwear after laundering, it can follow periods if you wear tampons or pads, both not cause irritation to the area that may result in inflammation.
What will provide some relief immediately is sitting in a warm bath and letting the warm water flow.
Dysuria (Painful Urination): 8 Causes of Burning & Pain While Peeing
Peeing, if you don't have a bathtub, you can get a pitcher burning warm water, sit on the toilet and pour the water over yourself - warm water only, not cold, that can be a little startling, and warm water after comforting. You can also add baking soda to that water to help relieve some of the not. If it starts to be relieved from the warm water - either bathing or drinking uti it may uti be inflammation.
But again, if it persists, then you must burning a peeing, if no relief in 48 hours, then you need to get to a medical professional.