He is the only one of the eight robbers who stays inside the Factory in order to slow down the police while his companions escape with their money, giving his life heroically and thinking that he behaved badly all his life.
Berlin sacrificed himself in the second part when he stayed back while other members escaped the Spanish Mint through the tunnel they had been digging.
He was finally killed by a group of police commanded by Suárez. The cops caught him and shot him several times in his chest.
Read: Berlin (Andres) Wiki