Is the "the" really needed? Or is it just there because "water" is modified by the to- adjectival phrase?
A steamboat needed only burning wood or coal to heat the water to make the steam to run the engine that ran the boat.
No, it is not needed here, except for consistency with the the before steam .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.