The Marlins agreed to an 11th-hour deal with Antonio Alfonseca worth $6 million over two years.