The movie Top Gun was a collaboration with the Pentagon to both enhance the US military’s image after the Vietnam war and attract new Navy recruits. It was the first full collaboration between Hollywood and the US military. – WTF Fun Facts
Source: https://en.wikipedia.org/wiki/Jerry_Bruckheimer#High-profit_productions