A general practitioner provides primary healthcare for patients of all ages. They diagnose illnesses, offer preventive care, prescribe treatments, and refer patients to specialists when necessary for further medical attention.