In 1986, Ted Turner purchased MGM/UA, but later resold the company except for its film library, which included the pre-May 1986 MGM film and television library and the pre-1950 Warner Bros. film library (which the latter was sold to Associated Artists Productions in 1956, and got acquired by United Artists in 1958). After that library was acquired by Turner, UIP (through MGM/UA) signed a deal to continue distributing the pre-May 1986 MGM and pre-1950 Warner Bros. film libraries for theatrical release.