set the oven to 300degf. move the ribs to an oven rack in the middle of the oven. bake 2 1/2 to 3 hours for spareribs or 1 1/2 to 2 hours for baby back ribs. halfway through cooking, cover the ribs with aluminum foil to protect them from drying out.