What is the difference between a solicitor and barrister?

Solicitors and barristers are both lawyers but they specialise in different services. A barrister specialises in Court-based advocacy while a solicitor does not specialise in advocacy. A solicitor has a broader and closer role with the client like a treating doctor compared to a surgeon.