To keep from being thrown into the river, the French committed an entire division to the street fight, in which the Ebelsberg castle loomed as the key position. After Masséna threw in a second division, the French finally ejected the Austrians from the castle.
In order to escape being tossed into the river, the French sent their entire division into a street battle around the Ebelsberg castle, which served as the main strategic point.  Masséna then threw in another division, allowing the French to finally drive the Austrians out of the castle.