Tonight the winners in some of the key categories will be announced
The 34-year-old Farah, who is quitting track to focus on marathon running, won in 7 minutes, 38.64 seconds.
"Emotions have been high coming into this event - not as much as (the 2012 Olympics in) London but it is my last time at home and I really enjoyed it," said Farah, who paid tribute to the home fans.
"They have been amazing. This is what it is all about. This is what we dream of. I've had some amazing support throughout my career and they have followed my journey so thank you."
Farah will retire from the track at the Diamond League finals in Zurich on Thursday.
Adam Gemili was disqualified after a false start in the 100 final, won by Chijindu Ujah in 10.08 seconds ahead of an all-British field.
Another British runner, Dwayne Cowan, won the 400 in 45.34, while Turkey's Ramil Guliyev beat Ameer Webb of the United States to win the 200 in 20.17.
There was success for the U.S. in the 110 hurdles, where world record holder Aries Merritt won in 13.29 ahead of Russia's Sergey Shubenkov, competing as an authorized neutral athlete. Another American, Devon Allen, was third.
In women's events, Olympic champion Elaine Thompson of Jamaica won the 100 in 10.93, while Salwa Eid Naser of Bahrain took the 400 gold ahead of an American trio of Allyson Felix, Courtney Okolo and Phyllis Francis.
Habitam Alemu of Ethiopia won the 800.
Tonight the winners in some of the key categories will be announced
German Foreign Ministry calls the upcoming expulsions a unilateral, unjustified and incomprehensible decision
Dortmund's dreams of capturing their first league trophy since 2012 were left in tatters when they were held to a 2-2 draw by Mainz 05
Ministry affirms that the nation expresses strong condemnation of these criminal acts, which aim to de-stabilise security and stability
Hamilton brought the session to an early end by crashing his Mercedes
Treasury Department says the government would run short of funds to pay all its bills on June 5 without congressional action
State news agency says Taliban forces started shooting at an Iranian police station amid a water dispute between the two countries
From the Mekong to the Mississippi, people are exploring new ways to grow one of the world’s most important staple crops in the face of climate crisis