When you buy a new house, you might not have a need to use every single room. If this is the case, it might make sense to house hack.
House hacking refers to landlords renting out a portion of the purchased property while also living on the property. Whether the landlord rents out the property by room or rents out separate units of a multifamily/duplex, it's all considered house hacking.
Tenants will be responsible for paying rent to the landlord and the landlord will still be responsible for maintaining a standard of habitability and performing fixes as needed.
House hacking may be a great place to start your property investing journey: