How to make part of a structure be above ground, while the other part is underground

what it says in the title. I'm new to worldgen so i have no idea how to do such a thing
Continue to help post