Mac and cheese is a simple and flexible dish, but in a recipe with just a few components, it's important to get everything right, and a grainy, curdled cheese sauce can ruin the whole thing. This curdling reaction is a result of overheating the cheese's proteins, which causes them to separate from the fat and water in the sauce.