Pets can improve mental health in several ways, such as providing companionship, reducing feelings of loneliness and stress, increasing opportunities for exercise and outdoor activities, and offering a sense of purpose and routine. Additionally, the act of caring for a pet can promote feelings of love, joy, and fulfillment, which can have positive effects on mental well-being.