Visit gov.uk/register-for-self-assessment/self-employed to start the registration process.
HMRC will send you your Unique Taxpayer Reference Number by post, which you’ll need to complete the setup of your account and enable you to complete your Self Assessment online.