When Justin Timberlake and Ryan Gosling were part of the Mickey Mouse Club in the '90s, the two became best friends, lived together for six months and even stole on the Disney set.

We used to do terrible things, Timberlake recently revealed to Ellen DeGeneres on her daytime talk show.

We stole a golf cart . . . and we drove into MGM Studios, which is totally illegal by the way. I was like, 'What you want to do, thug?' And [Ryan] was like, 'I don't know, cuz.' Because that's definitely how we talked, Timberlake added.

On the episode, airing Thursday, the 30-year-old singer and actor also revealed that he lived with Gosling for six months. Gosling had to part ways with his mother, who had to go back to Canada to work, and was under the legal watch of Timberlake's mother.

We were probably a little closer than the rest of the kids . . . just because we had to share a bathroom, Timberlake said.

Gosling and Timberlake were part of the Mickey Mouse Club cast from 1993 to 1994, the same time Britney Spears and Christina Aguilera were regular cast members.

The popular children's variety show also launched the early careers of fellow NSYNC member JC Chasez, actress Keri Russell and singer Matt Morris.

Gosling, also 30, has had a busy movie year, with the release of Crazy, Stupid, Love, Drive and the George Clooney political thriller The Ides of March.

The Canadian actor is currently filming The Gangster Squad in Los Angeles with Emma Stone, Sean Penn and Josh Brolin.

Gosling recently wrapped filming The Place Beyond the Pines with his Blue Valentine director, Derek Cianfrance.

Meanwhile, Timberlake is gearing up for the release of his new sci-fi thriller, In Time, starring Amanda Seyfried, Olivia Wilde and Cillian Murphy. The film arrives in theaters on Oct. 28.

Scroll down for vintage footage of Justin Timberlake and Ryan Gosling on The Mickey Mouse Club.