A subdomain is an extension of the main domain. Once you buy the main domain, you can create the subdomain by yourself. For example, rianstech.com is the main domain whereas blog.rianstech.com is a subdomain. Subdomains are used to categorize your website content.