Williams, who was looking for a fourth Grand Slam title in singles with a record on Saturday, received a warning for a coaching infraction before he was deducted a point for destroying his racket.
Then he had a heated argument with chairman Carlos Ramos, which cost him a game.
The six-time US Open champion UU., Which has since been fined $ 17,000 by the United States Tennis Association for the violations, vigorously challenged each during the game.
After Osaka's first Grand Slam triumph, there were messages of support for Williams and those who condemned his behavior and agreed to the referee's calls.
The great tennis player Billy Jean King wrote on Twitter: "When a woman is excited, she is" hysterical "and is penalized for it.When a man does the same thing, he is" frank "and there are no repercussions.Thanks, @serenawilliams, by calling this double standard, more voices are needed to do the same. "
Former world number one winner and 18 times Grand Slam winner, Chris Evert, also intervened in the decision to rob Ms. Wiliams in a game.
"Ok, the last thoughts in case someone cares, the coaching warning was fair, but all coaches and we have to change that rule … and Carlos should have told or warned SW (Serena Williams) about the abuse / verbal rule before applying it, "he wrote on Twitter.
The retired male professionals also jumped in defense of Ms. Williams.
Andy Roddick, former star of the world's number one men, defended Williams and said he "unfortunately said worse things and I have never received a penalty for the game."
But the American also admitted later that the referee was "in his power to make that call" after being called "thief."
James Blake also said that he had said something worse and that he had never been penalized.
The current player, Victoria Azarenka, said that the same violations would not have been transmitted if it had been in a male match.
However, the Australian Margaret Court, whose recount of Grand Slam titles is pursued by Williams, felt little sympathy for the number one American in the world, 36 years.
"We always had to follow the rules," said Court, who dominated tennis during the 1960s and early 1970s, according to a report by The Australian.
"It's sad for the sport when a player tries to make himself bigger than the rules.
"Because the young player overcame her in the first set, I think the pressure caught her more than anything."
The drama began when Ramos gave Williams a training infraction early in the second set due to hand gestures by his coach Patrick Mouratoglou. He later admitted the offense, which is not allowed in sports, but rarely applies.
When the rape was announced, Williams approached Ramos to insist that he never take coaching and would rather lose than "cheating to win."
Things seemed reassured when Williams broke Osaka by a 3-1 lead, but made the jump in the next game with a pair of double faults, prompting the former champion to crush her racket on the court.
That resulted in a second violation, which means that Osaka was awarded the first point of the sixth game.
Williams, who had the impression that the first violation had been canceled, returned to Ramos to seek an apology for having said he had received training before.
During a change, Williams resumed his discussion with the referee, this time saying that he was attacking his character and that he was a "thief." That triggered a third violation, which resulted in a penalty of the game that gave Osaka a 5-3 advantage.
From there, Williams summoned the tournament referee to the court and said that tennis players are not punished for similar offenses.
The great tennis player John McEnroe, one of the most stormy characters of the game in his time as a player, said that the sport must find a way to allow players to express their feelings and inject their personality into the game, at the same time as they respect certain rules.
According to McEnroe, Ramos should not have given Williams an infraction for breaking his racket and should have warned him from the start about what would happen if she did not move forward.
"I've said much worse," said McEnroe, a seven-time Grand Slam singles winner on ESPN. "She's right about the types being subject to a different standard, there's no doubt."
However, Richard Ings, a former professional chair referee who also used to be the executive vice president of the ATP Tour, Rules and Competition, felt that it was Williams who needed to apologize.
Ings once issued a warning, penalty point and penalty of a game against McEnroe at the US Open in 1987 for obscenities directed at the referee.
"We should not allow her to register, as brilliant as she is, to overshadow the fact that on this day, in this match, Williams was wrong," Ings wrote in The Sydney Morning Herald.
"The decisions taken by Ramos had nothing to do with sexism or racism, they had everything to do with observing violations of the Grand Slam code of conduct and then having the courage to call them without fear or favor."