By April 1945, Yamato was one of the last fully battle ready capitol ships left in the IJN's arsenal. Nagato, Haruna, Ise, and Hyuga all in various states of disrepair from previous USN air raids on Kure (most notably the March 19th raid). With Okinawa being invaded, the IJN reluctantly gave into wishes from the Emperor to put up a full force resistance, realizing that any further naval action would likely be suicidal for any ships that participated. Never the less, Naval command approved an attack, Operation Ten Ichi Go (heaven number 1). The operation called for whatever strike capable ships left (given the limit of fuel and ammunition available) would sail South towards the US invasion fleet and act as a distraction for US carrier aircraft, allowing kamikaze strikes to have a better window at attacking the US fleet. The IJN "Special attack" surface fleet, (namely Yamato) would then attack the US fleet and inflict as much damage as it could and perhaps even attempt to beach herself and be utilized as a sort of improvised "landed" battery to be used against US ground forces. Either or, the mission for the surface fleet itself was a kamikaze strike. Rear Admiral Ito was named the commander of the special attack force consisting of: Yamato as the primary attack vessel with cruiser Yahagi and 8 destroyers acting as anti air and sub protection. The small fleet left the Japanese Inland Sea on April 6, hugging the Southern coast of Kyushu and being safeguarded by small groups of sub chasers and fighters. As soon as the strike force left the inland sea, US submarines made visual/radar contact, and alert the US fleet off Okinawa. The strike force also is spotted and shadowed by numerous groups of US scout aircraft. The strike force continues on a westerly course until turning South on the morning of the 7th. By that afternoon, nearly 300 aircraft from Task Force 58 begin their assault on the Yamato and her escorts, 6 US battleships form a task force sailing north of the main fleet to meet Yamato should she survive. During the attack, Yamato takes numerous bomb and torpedo hits resulting in the failure of her fire control and counter flooding system. As a result, fires breakout through the ship and she begins a dangerous list to port. By 2:00 PM, Yamato's AA is largely silent and her list to port reaches near 30 degrees while only one of her four turbines is still running. A six torpedo attack aimed at her starboard side (to hit her now exposed underbelly) results in near immediate failure of her flooding control system. The order to abandon ship is given, with the majority of the crew trapped below deck. At 2:20, Yamato rolls over onto her port side and capsizes. A powerful explosion erupts as fires set off the contents of her No. 1 magazine which rips the ship in half. Of 3,055 crew, only 276 are recovered from the sea. Yahagi and four other destroyers were also sunk, claiming an additional 1,800 lives. The four remaining destroyers rescue survivors and return to Japan. American losses in the attack cost 10 aircraft and their 12 crews. As for the additional Kamikaze attacks, 100+ aircraft attack the US fleet, only damaging 1 carrier, battleship, and destroyer. For the IJN, it was their last action as an operable force. For more in depth history, look at:
http://www.combinedfleet.com/yamato.htm