On 25 July 1956, while the Andrea Doria was approaching the coast of Nantucket, Massachusetts , bound for New York City, the eastbound of the Swedish American Line collided with it in what became one of history's most infamous maritime disasters .