To create an Xbox account, you need a Microsoft account. A Microsoft account isn’t the same as an Xbox account, although you can use the same email address for both.
Creating a Microsoft account
Go to the official Xbox website and click Sign in in the upper-right corner. You can also open this link to go straight to the sign-in page.
Click “Create one!”.
Continue the registration: create a password and enter your name and date of birth.
Verify your email address (a verification code will be sent to it).
Once verified, you’ll have a new Microsoft account and can sign in to Xbox.
Creating an Xbox account
Go to the official Xbox website and click Sign in in the upper-right corner. You can also open this link to go straight to the sign-in page.
Sign in with the email address you used to create your Microsoft account.
Follow the on-screen instructions to finish setting up your Xbox account.