A duplex is a type of residential building divided into two separate living units, each with its own entrance. The two units are typically mirrored images of each other, with a shared wall in between. Some landlords purchase them solely as investment properties, while others might live in the second unit.