The 42-year-old British star, who has portrayed private investigator Kalinda Sharma since 2009, will leave once her contract with producers at US network Cbs expires at the end of the current sixth season, reported People magazine.
However, Panjabi won't be gone from screens for long - she has landed a development deal with studio executives at 20 Century Fox Television for her own drama pilot, which is expected to air next year.
"Archie is an Emmy Award-winning dramatic actress, and rightly so. Her work on 'The Good Wife' has been extraordinary, and the time has come for her to star in a project of her own. We couldn't be happier that it will be with us," casting executive Sharon Klein said.