If you created a website on a <a href='/support/website/cpanel/how-do-i-create-a-subdomain-in-my-control-panel-cpanel'>subdomain</a> and want to move it to your <a href='/support/website/how-to/locate-primary-domain-name'>main domain</a>, you can. In essense, you'll need to move all of your website files to your public_html folder. This could be the last step for you, but certain programs (like <a href='/support/community-support/wordpress/how-can-i-move-wordpress-from-subfolder-to-root-folder'>WordPress</a> / <a href='/support/community-support/joomla/how-do-i-move-joomla-from-a-subfolder-to-my-root-folder'>Joomla</a>) may have a few other changes that you need to make.
Here are a few tutorials that may help you with your task:
<a href='/support/website/getting-started-guides/where-to-upload-files'>Where should I upload my files?</a>
<a href='/support/team/move-site-files'>An overview on moving applications from subfolders to your root folder</a>
Let us know if you have any further questions!