Bad irritation on outer part of penis and then came burning sensation when I pee and ejaculate. The burning came 2 days later. What can it be?

Possible STD. Even though the external irritation doesn't quite fit, this still could be a sexually transmitted disease causing urethritis, such as gonorrhea or chlamydia. You should get checked right away.