MI5 has retained its position as one of the top UK employers for lesbian, gay and bisexual (LGB) people.
MI5 has been ranked 7th in the annual Stonewall Workplace Equality Index.
The Index measures an organisation's work to tackle discrimination and create an inclusive workplace for LGB staff.
MI5 Director General Andrew Parker commented:
"Keeping the country safe is a challenge that requires the best efforts of the richest mix of the most talented people in our society, working together in high-performing teams. So it is essential to our success that MI5 is an inclusive workplace offering varied, rewarding and challenging careers for all."
This is the fifth time MI5 has taken part. It was ranked 134th in 2011, 62nd in 2012, 26th in 2013 and 25th last year.
More information on the Stonewall Workplace Equality Index is available on the Stonewall website.