The best pet for small spaces would be a small animal like a hamster, a guinea pig, a fish, or a bird such as a budgie or a canary. These pets require less space compared to larger animals like dogs or cats and can thrive in a smaller living environment.