Add potatoes and garlic to a large pot and cover with cold, salted water. Bring to a boil and cook until very soft, about 15–20 minutes. Drain and return potatoes to the warm pot. Mash while hot with butter until creamy. Season with salt and pepper to taste.