You register online so you can do self assessment tax returns. Then you get a UTR. Can’t remember the full process, it was a while ago when I registered, but then you fill out the self assesment by the end of January for the previous tax year. You fill in all your income, all your outgoings and it tells you how much you have to pay.