By the time Harvey Milk's supervisors in the US Navy officially questioned him about his sexuality, he had graduated from officer school and served as a diving officer on a submarine rescue ship during the Korean War.

Then his superiors caught him in a park that was popular with gay men, his nephew said. The sighting raised questions about Milk's sexual orientation in an era when the military banned gay, lesbian and bisexual service members. Milk was forced to resign.

In a move that signalled an about-face on the issue of gay rights, the Navy began to construct the USNS Harvey Milk on Friday, a fleet oiler that will provide fuel to ships and aircraft. The Navy announced in 2016 that Milk's name would appear on a ship, along with other civil rights leaders, including abolitionist Sojourner Truth and suffragist Lucy Stone.

Joining the Navy was a tradition in Milk's family. His Lithuanian-born father, William, and his mother, Minerva, both served, according to a biography on the website of the Harvey Milk Foundation. Milk studied maths and history at New York State College for Teachers, which is now the State University of New York, before he joined the Navy and started Officer Candidate School in Newport, Rhode Island.

Life after the Navy took Milk to New York, where he worked as a teacher, a stock analyst and a production associate for Broadway musicals. He moved to San Francisco in 1972 and opened a camera shop in the Castro District, which was known for its gay community.

10 Harvey Milk Quotes To Inspire You Show all 10 1 /10 10 Harvey Milk Quotes To Inspire You 10 Harvey Milk Quotes To Inspire You Harvey Milk “You’ve gotta give them hope. If a bullet should enter my brain, let that bullet destroy every closet door.” Corbis 10 Harvey Milk Quotes To Inspire You Harvey Milk “The fact is that more people have been slaughtered in the name of religion than for any other single reason. That, that my friends, that is true perversion!” Corbis 10 Harvey Milk Quotes To Inspire You Harvey Milk “Rights are won only by those who make their voices heard.” AP 10 Harvey Milk Quotes To Inspire You Harvey Milk “I know you can't live on hope alone; but without hope, life is not worth living. So you, and you and you: you got to give them hope; you got to give them hope.” Corbis 10 Harvey Milk Quotes To Inspire You Harvey Milk “It's not my victory, it's yours and yours and yours. If a gay can win, it means there is hope that the system can work for all minorities if we fight. We've given them hope.” Corbis 10 Harvey Milk Quotes To Inspire You Harvey Milk “It takes no compromise to give people their rights...it takes no money to respect the individual. It takes no political deal to give people freedom. It takes no survey to remove repression.” AP 10 Harvey Milk Quotes To Inspire You Harvey Milk “All men are created equal. No matter how hard they try, they can never erase those words. That is what America is about.” Corbis 10 Harvey Milk Quotes To Inspire You Harvey Milk “Let me have my tax money go for my protection and not for my prosecution. Let my tax money go for the protection of me. Protect my home, protect my streets, protect my car, protect my life, protect my property...worry about becoming a human being and not about how you can prevent others from enjoying their lives because of your own inability to adjust to life.” Corbis 10 Harvey Milk Quotes To Inspire You Harvey Milk “Every gay person must come out. As difficult as it is, you must tell your immediate family. You must tell your relatives. You must tell your friends if indeed they are your friends. You must tell the people you work with. You must tell the people in the stores you shop in. Once they realize that we are indeed their children, that we are indeed everywhere, every myth, every lie, every innuendo will be destroyed once and all. And once you do, you will feel so much better.” Corbis 10 Harvey Milk Quotes To Inspire You Harvey Milk “Hope is never silent.” Corbis

Milk quickly became a powerful local activist. He founded the Castro Village Association for LGBT-led businesses, sat on San Francisco's Board of Permit Appeals and in 1978 was sworn in as a city-county supervisor.

In addition to advocating for policies that would affect all residents, Milk was also a fervent protector of gay rights. He joined others in opposing Proposition 6, a California ballot initiative that would have mandated firing gay teaches from public schools, The bill, sponsored by Republican state Senator John Briggs, was defeated.

Milk urged gay people to proclaim their sexual orientations as a way to fight for equality.

"We are coming out to fight the lies, the myths, the distortions," he said in a speech. "We are coming out to tell the truths about gays, for I am tired of the conspiracy of silence, so I'm going to talk about it. And I want you to talk about it. You must come out."

People regularly lobbed death threats at Milk, who created several iterations of his will in case he were to be assassinated. "If a bullet should enter my brain, let that bullet destroy every closet door," he said in one version.

Milk's prediction became reality on 27 November 1978, when former Supervisor Dan White entered city hall through a basement window, killed Mayor George Moscone and shot Milk several times. Moscone had decided days earlier not to reappoint White to the legislative body.

Dianne Feinstein, then a supervisor and now a Democratic senator from California, found Milk's body and told people who gathered at city hall that Moscone and Milk, then 48, had been killed. White pleaded "diminished capacity" at trial because he had fallen into a depression and, among other things, eaten a lot of sugar-heavy food before the killings.

A photo of the new USNS Harvey Milk is displayed during a ship naming ceremony on 16 August 2016 (Getty Images)

Using that so-called "Twinkie defence," a jury found White guilty of voluntary manslaughter, instead of murder. Riots and candlelight vigils took place to express outrage at the verdict. White served five years in prison and later killed himself.

In contrast with White's suicide, which mostly went unnoticed by the public, Milk's legacy lives on.

It wasn't until more than a decade after his death that the Navy would have been barred from forcing Milk out for being gay. President Bill Clinton in 1993 signed a policy of "don't ask, don't tell," which banned harassment of "closeted" service members but still banned openly LGBT+ people from the armed forces. President Barack Obama repealed the policy in 2011, opening the door for LGBT+ military members to reveal their sexual orientations.

The San Francisco Board of Supervisors in 2012 urged the secretary of the Navy to name a ship after Milk, one of the nation's first openly gay elected officials. The answer to their request would come four years later.

"When Harvey Milk served in the military, he couldn't tell anyone who he truly was," Scott Wiener, then a San Francisco supervisor, wrote in 2016 when the Navy announced the ship's name. "Now our country is telling the men and women who serve, and the entire world, that we honour and support people for who they are."