Commodore Matt Decker was a Human Starfleet flag officer assigned as the commander of the USS Constellation.
In 2267, the Constellation was on a routine survey mission near system L-374 when it encountered an alien planet killer systematically destroying the planets of the system.
During the encounter, his ship became hopelessly damaged, rendering all power plants dead. Decker remained on board to confront the machine, beaming his entire crew to what he believed was safety on the third planet of the L-374 system. When the alien machine destroyed that planet, and further damaged the Constellation, Decker was the only survivor.
Decker was later discovered by the USS Enterprise, who transported him from his broken ship. He initially resisted the effort to do so, stating that he had never lost a command before. Consumed with grief over his actions, and with an almost reckless desire for revenge, Decker seized command of the Enterprise after losing contact with the Constellation, leaving Captain Kirk stranded aboard the Constellation.
He then launched an attack on the planet killer, a futile move which resulted in severe damage to the Enterprise. When communications were restored with the Constellation, Captain Kirk gave Commander Spock a direct order to relieve Decker on his personal authority as Captain of the Enterprise. Decker submitted to Spock's relieving him of command after being threatened with arrest if he did not comply. Decker subsequently stole an Enterprise shuttlecraft, piloting it into the maw of the creature in an attempt to destroy it.
Decker was killed in the attempt. While the attack failed to cause significant damage – the Planet Killer had lost a small amount of power – it did demonstrate to the Enterprise crew how to disable the creature. Kirk drove the Constellation into the maw of the Planet Killer, which died when it was unable to handle the energy released by the Constellation's exploding impulse engines. Following the battle, Captain Kirk noted in his log that Decker had given his life in the line of duty.