Gretchen Carlson has filed a sexual harassment suit against her Fox News boss Roger Ailes.

The popular host of The Real Story with Gretchen Carlson alleges that she was let go on June 23 after 11 years with the network for refusing to sleep with Ailes.

Carlson writes in her court filing about a conversation she had with Ailes last September in which he allegedly said to her: 'I think you and I should have had a sexual relationship a long time ago and then you'd be good and better and I'd be good and better.'

The conversation allegedly came when Carlson went to speak with Ailes about what she believed were discriminatory practices at the network.

Carlson posted on Facebook Wednesday morning: 'As you may have heard, I am no longer with Fox News. I value your support and friendship, especially now, so please stay in touch with me. I value your support and friendship, especially now, so please stay in touch with me.'

Scroll down for video

Bombshell: Gretchen Carlson (above in June) has filed a sexual harassment suit against Fox News CEO Roger Ailes

Claim: Carlson alleges that she was fired after 11 years with the network when she refused to sleep with Ailes (above in 2005)

Allegation: Carlson also accuses her former Fox & Friends co-host Steve Doocy (above in 2011) of 'pervasive sexual harassment' in her complaint

Carlson claims in her complaint that Ailes called her a 'man hater' and accused her of wanting to 'show up the boys' when she complained about what she alleges was diminishing treatment and 'pervasive sexual harassment' by her Fox & Friends co-host Steve Doocy.

I think you and I should have had a sexual relationship a long time ago and then you'd be good and better and I'd be good and better. -Roger Ailes to Gretchen Carlson according to court complaint

Doocy also 'created a hostile work environment by regularly treating her in a sexist and condescending way, including by putting his hand on her and pulling down her arm to shush her during a live telecast,' claims the complaint.

These complaints about Doocy are why she was fired from the marquee show in 2013 and placed as the host of her own afternoon show, claims Carlson in her complaint.

Carlson, 50, alleges that her compensation was decreased at this time as well by the network.

The spot was open at the time because Ailes had made the decision to move Megyn Kelly from that afternoon slot to the 9pm hour, following the network's highest rated program, The O'Reilly Factor.

Elisabeth Hasselbeck was then brought on to join Doocy and Brian Kilmeade on Fox & Friends.

'We believe that the evidence will confirm that Gretchen was fired from Fox & Friends for speaking up about demeaning and discriminatory behavior on and off the set,' said Nancy Erika Smith of Smith Mullin PC, who is representing Carlson.

Carlson also included a list of comments she claims Ailes made to her at the workplace in her complaint.

He created a hostile work environment by regularly treating her in a sexist and condescending way, including by putting his hand on her and pulling down her arm to shush her during a live telecast. -Carlson on Paul Doocy in court complaint

'Ogling Carlson in his office and asking her to turn around so he could view her posterior,' reads one grievance in the complaint.

In another instance Carlson alleges in her complaint that Ailes asked her how she felt about him before stating: 'Do you understand what I'm saying to you?'

Carlson also claims in her complaint that Ailes once told people at an event that he likes to stay seated when women greet him so they have to 'bend over' to say hello.

The Fox News CEO also called Carlson 'sexy' but 'too much hard work' and said he had 'slept' with three former Miss Americas but never her according to the complaint.

Carlson was crowned Miss America in 1989.

Carlson states in her complaint that Ailes also denied her 'various opportunities that were afforded to other Fox News hosts.'

These include: 'reducing her compensation'; 'severely curtailing her appearances as a guest commentator'; blocking her from appearing as a substitute host'; 'refusing to assign her to cover high-visibility events'; 'refusing to give her social media, public relations, and advertising support'; 'sunning, ostracizing and humiliating her, both publicly and privately'' and then ultimately 'decreeing that her contract not be renewed,' claims the complaint.

Family: Gretchen Carlson and husband Casey Close in 2010 (left); Roger Ailes and wife Elizabeth in October (right)

Carlson is requesting compensation for her mental anguish and punitive damages in her suit, and asking for a jury trial.

'By and through his creation of a discriminator, hostile and harassing work environment, his demands for sexual favors, and his retaliation against Carlson for her objections to discrimination and retaliation, Ailes has violated the New York City Human Rights Law,' reads the complaint, which was filed in the Superior Court of New Jersey.

I have strived to empower women and girls throughout my entire career. Although this was a difficult step to take, I had to stand up for myself and speak out for all women and the next generation of women in the workplace. I am extremely proud of my accomplishments at Fox News and for keeping our loyal viewers engaged and informed on events and news topics of the day.' -Carlson on her decision to file a lawsuit

Carlson lives in Connecticut and Fox News headquarters are in Manhattan, but Ailes lives in Cresskill, New Jersey.

Ailes was named CEO of Fox News in 1996, and in 2005 Rupert Murdoch named him Chairman of the Fox Television Stations Group.

Carlson said in a statement on Wednesday: 'I have strived to empower women and girls throughout my entire career.

'Although this was a difficult step to take, I had to stand up for myself and speak out for all women and the next generation of women in the workplace.

'I am extremely proud of my accomplishments at Fox News and for keeping our loyal viewers engaged and informed on events and news topics of the day.'

Ailes, 76, has been married to Elizabeth Tilson since 1998 and the couple has one child.

He allegedly stated that marriage was 'boring,' 'hard,' and 'not much fun' according to claims made by Carlson in her complaint.

Carlson meanwhile is married to baseball agent Casey Close and the couple have two children.

Close has represented some of the biggest stars in baseball, most notably Derek Jeter, who he worked with during his entire professional career.

Carlson joined Fox News in 2006 after six years working for CBS, and spent seven years on Fox & Friends.

She began hosting her own afternoon program in September of 2013, where she remained until being fired last month.

In 2015 she released a memoir, Getting Real, detailing her early struggles and career as a journalist.

In that book she wrote about first meeting Ailes, and the excitement she felt at the time joining the network.

'He saw something in me that he liked – what he called my “killer instinct.” He once noted that I would stop at nothing to do the job. He got me,' wrote Carlson.

'Over the years I’ve come to value our time together. He encourages me to be myself, to relax and to not try so hard to look smart. “People know you’re smart,” he says.

'HE was also the first person to urge me to talk about being Miss America. CBS had taken the reference off my resume and I had come to see it – unfortunately – as not especially good for my credibility.

'Roger insisted people wanted to hear about Miss America from time to time, and that was certainly a pleasant shock.'

That book was released three months before the alleged conversation between Ailes and Carlson that she details in her complaint.

New kid on the block: Kimberly Guilfoyle hosted Carlson's show, The Real Story, on Tuesday on Fox News (above)

Revolving door: Carlson took over Megyn Kelly's time slot in 2013 while Elisabeth Hasselbeck was brought in to replace Carlson on Fox & Friends (Kelly left in May, Hasselbeck right in June)

Carlson also revealed in an interview on her former Fox & Friends co-host Brian Kilmeade's radio show in 2013 that she was not allowed to wear pants while hosting the popular morning program.

After walking into the room to sit down for the interview the first thing Carlson said was: 'Nobody's going to recognize me because not only am I dressed casually, I have on pants! Now, pants were not allowed on Fox & Friends, remember?'

Her comment came one year after Kilmeade joked about the Fox News hiring process on his show by saying: 'It was actually - we go to the Victoria's Secret catalog and we said, 'Can any of these people talk?' And they all could and they all went to college.'

Kilmeade also once cause Carslon to storm off the set of Fox & Friends when he said: 'Women are everywhere. We're letting them play golf and tennis now.'

He always brags to people about how he doesn’t do polling or testing when he chooses his on-air talent. He told me that if he was thinking of hiring a woman, he’d ask himself if he would f*** her, and if he would, then he’d hire her to be on-camera. - Fox News employee speaking about Ailes alleged hiring practices

He later claimed he was only joking, but Carlson, who was met with boos as she walked away, told his as she left: 'You know what? You read the headlines, since men are so great. Go ahead.'

Kilmeade later said on the program after Carlson returned that he is 'pretty much not sexist.'

The Huffington Post spoke with Fox News insiders who also made damaging claims about Ailes, with one employee alleging: 'He always brags to people about how he doesn’t do polling or testing when he chooses his on-air talent. He told me that if he was thinking of hiring a woman, he’d ask himself if he would f*** her, and if he would, then he’d hire her to be on-camera.'

A contributor at network meanwhile alleged that Ailes once asked her to 'turn around so he can see my a**.'

Carlson wrote about her past experiences with sexual harassment in a piece for Huffington Post last June, just three months before her alleged conversation with Ailes.

'Most professional women I know have experienced sexual harassment. So have I - a few times - and I never talked about it until now. If that seems surprising, it shouldn't be, writes Carlson at the beginning of her essay.

'I've always considered myself a strong woman, not afraid to stand up for myself, but in the face of sexual harassment I was silent. As the issue takes a prominent place in the headlines today, I sometimes feel guilty about my trepidation.

'Perhaps I could have moved the conversation forward if I had come forth.'

She then went on to detail three instances in which she was allegedly harassed by a male early in her career.

Carlson then wrote: 'To be honest, if a young professional woman were to ask my advice about what to do if she were sexually harassed, I might hesitate. It's well and good to say, 'Expose the harassers,' but even with laws and HR departments, we're unfortunately not at a place where we can say absolutely that a woman who is harassed will be protected from repercussions if she tells.

'Those repercussions aren't just the obvious trauma of being publicly involved in a scandal. They can be more insidious — an aura of doubt about her reliability, her stability and her toughness that could have an impact on her career growth.

'No wonder most women just prefer to move on and not tell.'