Moonlighting became a live issue when several technology companies terminated employees over it. The legal position is reasonably clear once the two periods are separated.
During employment
An exclusivity or full-time-service clause is enforceable. It regulates the employment relationship rather than restraining trade after it, so Section 27 of the Indian Contract Act does not strike it down. Breach can amount to misconduct, and where standing orders or the contract classify it as such, it can justify disciplinary action including termination, subject to a fair process. Note that standing orders now sit in Chapter IV of the Industrial Relations Code, 2020 and apply to industrial establishments with 300 or more workers, so many mid-sized employers now have only the contract to rely on.
Independent of contract, some statutes restrict dual employment. Section 30 of the Occupational Safety, Health and Working Conditions Code, 2020, which replaced Section 60 of the Factories Act, 1948 when the labour codes came into force on 21 November 2025, provides that no worker shall be required or allowed to work in a mine or factory if he has already been working in another such establishment within the preceding twelve hours, save in prescribed circumstances. Several state Shops and Establishments Acts, which the codes did not repeal, contain comparable provisions.
Can they actually stop you?
- Still employed, and the contract has an exclusivity clause? Generally enforceable during employment, and breach is a disciplinary matter.
- Still employed, contract silent? The duty of fidelity still bites where the second job competes, uses the employer's time, or uses its confidential information.
- Employment ended, and the clause restrains you from working elsewhere? Section 27 of the Contract Act makes post-employment non-compete restraints void as a rule, whatever the contract says.
- Employment ended, and the clause protects confidential information or solicits customers? That is a different question, and such clauses are treated more favourably than a bare restraint on employment.
- Working in a factory or mine already covered by the hours provisions? A statutory restriction applies independently of the contract.
After employment
A clause preventing you from taking up other employment after you leave is void under Section 27. Indian law does not apply a reasonableness test to post-employment restraints. What survives is confidentiality, non-solicitation where narrowly drawn, and IP assignment.
The procedural answer runs the same way. The Specific Relief Act, 1963 provides that an injunction cannot be granted to prevent the breach of a contract whose performance would not be specifically enforced, and a contract of personal service is not specifically enforced. So a former employer asking a court to restrain you from working for a competitor is asking for something the statute does not readily give. What it can properly ask for is an order restraining the use or disclosure of its confidential information, which is a different thing and is granted on evidence that specific information was taken. That is why the documents that actually matter on exit are the confidentiality and intellectual property clauses rather than the restraint clause: our note on drafting a workable NDA in India covers what a confidentiality obligation can and cannot reach.
Three things get people into genuine trouble: using the employer's device, network, licences or premises for outside work; a conflict of interest, particularly working for a competitor or a client of the employer; and the IP clause, under which everything you create during the employment period may be assigned to the employer, potentially including your side project. That last one is the sleeper issue for developers and designers.
Practical guidance
- Read the appointment letter and the HR policy. Many now permit outside work with prior written consent, which is the safe route.
- If you seek consent, define the scope narrowly and get the answer in writing.
- Never use employer resources, and keep the work strictly outside working hours.
- Check the IP clause carefully and, if you have a personal project, seek a written carve-out before you start.
- Two employers both filing PF for the same UAN, or overlapping Form 16s, is how dual employment usually surfaces. Assume it will become known.
- If you are engaged through a platform rather than employed, note that the Code on Social Security, 2020 defines gig workers and platform workers separately from employees, so the exclusivity analysis and the social security position both differ.
- Government servants are in a different position altogether. Conduct rules generally prohibit engaging in trade or any other employment without permission, and breach is a disciplinary matter, not a contractual one.
If you are charged with it
Moonlighting is usually alleged as misconduct rather than sued upon, so the fight is about process as much as substance. Ask for the charge in writing and the material relied on, and answer it in writing rather than in a meeting. Deal with the three things that decide the outcome: whether the outside work was in working hours, whether the employer's devices, network, licences or data were used, and whether the other engagement was with a competitor or a client. An honest answer on all three, supported by your own records, is a better position than a denial that the employer can disprove from access logs.
If it proceeds to dismissal, the remedy depends on where you sit. A worker under the Industrial Relations Code, 2020 has the conciliation and tribunal route. For most Bengaluru white collar staff, the practical remedy is the appeal under Section 39 of the Karnataka Shops and Commercial Establishments Act, 1961, on the ground that there was no reasonable cause or that the misconduct was not proved at a properly held enquiry. Either way the enquiry has to be a real one, with a charge sheet, disclosure of the material and an opportunity to answer it. Our guide on what an Indian employment agreement should contain covers the exclusivity, conflict and intellectual property clauses that these disputes turn on.