Your company must:
Not be under control of another company
Have gross assets of less than £30 million
Have less than 250 full-time employees
Be carrying out a qualifying trade (things like banking, legal and accountancy services, property development and farming are excluded trades)
Here’s an article that lays out the comprehensive requirements further.