With the following as a permalink structure;
/%category%/%postname/
The category slug is added to the URL. Subcategories, if any, appear as nested directories.
So you end up with ;
- /category/your-post-slug/
And if subcategories are used
- /category/subcategory/your-post-slug