Early in 1972, Bang was designated for transfer to the Spanish Navy on a five-year loan. Following upkeep to lengthen her safe submerged operations limit, Bang returned to New London to train Spanish sailors in preparation for the transfer. On 1 October 1972, Bang was decommissioned and transferred to the Spanish government.