The Germany flag was officially adopted on May 23, 1949. It was used by West Germany when the country divided itself into East and West. Note that both were reunited into one nation in 1990.
The tricolore flag was designed in 1832, and the black, red and gold colors were taken from the uniforms of German soldiers during the Napoleonic Wars.