Basketball icon Michael Jordan has been banned from a country club in Miami Beach, Florida for wearing inappropriate attire.

The retired athlete was asked by a staff member at La Gorce to change when he was spotted enjoying a round of golf wearing a pair of cargo pants.

The club's strict dress code is slacks or Bermuda shorts.

Jordan refused and now he has been ordered not to come back.

His representative tells the New York Post, "Michael Jordan did wear cargo pants. He had been there many times before and had worn cargo pants previously, and had never been made aware that he was violating any dress code.

"This time, he was made aware of the violation on the 12th hole, and, at that point, he did refuse to interrupt his game, and return to the clubhouse and change. We were not aware that he is not allowed to return to La Gorce. I guess it's their loss - as Mj is a great golfer, and a great guest."