Trainspotting director Danny Boyle says that he treated Ewan McGregor badly by not casting him in the lead role of The Beach, his 2000 movie starring Leonardo DiCpario.

Speaking on last night's edition of The Jonathan Ross Show on ITV, Boyle says that he treated McGregor poorly by passing him over as he felt he needed "a bigger star" for the lead role.

Boyle had already cast McGregor in the lead in Trainspotting, Shallow Grave and A Life Less Ordinary.

"We didn't treat him very well, I've got to be honest about it, we didn't behave at our best," he said. "You learn and we've apologised.

"We made this film called The Beach, and we gave Ewan the impression we were going to cast him in it and we didn't cast him in it, we cast another actor, a wonderful actor Leonardo DiCaprio, who was a lovely guy, they're both wonderful.

"You think you're moving up, it's the illusion that you think you're moving up, therefore you're going to need a bigger star to sell the movie. You learn to stick with your roots."

The director also talked to Ross about the recently-announced Trainspotting sequel.