An AI system is bought on promises about what it will do, what it will learn from the buyer's data and who owns the result. A contract that records those promises protects the buyer when the system underperforms, when the vendor changes its terms or when the relationship ends. This guide draws on three general laws that bear on the contract: the Personal Data Protection Law, the Civil Transactions Law and the Copyright Law. This guide sets out what each law means for the main clauses: purpose, data, training, testing, ownership, liability, suspension and exit.
1. Which texts govern
The Personal Data Protection Law was issued by Royal Decree M/19 of 09/02/1443 AH and amended by Royal Decree M/148 of 05/09/1444 AH. The Experts Authority portal lists it as in force. It applies to any processing of personal data in the Kingdom, including processing by a party outside the Kingdom of data about individuals residing in it (art. 2). The Civil Transactions Law was issued by Royal Decree M/191 of 29/11/1444 AH and published on 19/06/2023, and the portal lists it as in force. The Copyright Law was issued by Royal Decree M/169 of 14/08/1447 AH, published in Umm Al-Qura on 13 February 2026; its implementing regulation was published on 31 July 2026. The Personal Data Protection Law leaves many details to its implementing regulations, and sector rules can add duties for banks, health providers and public bodies. Check the current text of all of these, and of any regulations or guidance from the competent authority, before signing.
2. Purpose and scope of use
The contract should say what the system is for, which processes and users it covers, which data it may receive and what it must not be used for. The reason is practical and legal. Personal data may be collected and processed only for the purpose for which it was collected (art. 10), the purpose must be directly related to the purposes of the controller (art. 11, paragraph 1), and processing for another purpose needs the data subject's consent or a ground the law allows (art. 5, paragraph 1; art. 6). Consent is the base rule and the data subject can withdraw it at any time; the regulations set the conditions of consent and the cases where it must be explicit, and consent cannot be made a condition of a service unless the service relates to the processing consented to (art. 5, paragraphs 1 and 2, as amended; art. 7). Since the amendment, a controller may also process without consent where the processing is necessary for its legitimate interests, unless that harms the rights or interests of the data subject or involves sensitive data (art. 6, paragraph 4). A buyer that feeds customer or staff data into a new AI use should check the original purpose first, then write the permitted use into the contract.
3. Data, vendor role, transfers abroad and training
When the buyer chooses an entity to process data for it, the buyer must choose one that gives the guarantees needed to apply the law and its regulations and must verify the entity's compliance. This does not reduce the buyer's responsibility to the data subject or the competent authority, and the regulations govern the processor's later subcontracting (art. 8, as amended). The contract should therefore name the vendor's role, list its subprocessors, bar disclosure except as the law allows (art. 15, as amended), require security measures including during transfer (art. 19), and require notice of a leak, damage or unlawful access so the buyer can inform the competent authority and, where harm is likely, the data subject (art. 20, as amended). A transfer or disclosure outside the Kingdom is allowed only for the purposes listed in article 29, paragraph 1, and on conditions: no harm to national security or vital interests, an appropriate level of protection abroad, and only the minimum data needed (art. 29, as amended). The contract should say where the vendor hosts, processes and supports the system and whether data leaves the Kingdom.
Many AI contracts let the vendor use customer inputs to train or improve its models. For personal data, that is a purpose that must be justified under the rules in section 2, because processing is limited to the purpose of collection (art. 10) and a change of purpose needs consent or another ground (art. 5). Data that is no longer needed for the purpose must stop being collected and be destroyed without delay (art. 11, paragraph 4, as amended; art. 18, as amended). The contract should say whether the vendor may train on the buyer's data at all, whether the buyer's data may be used only inside the buyer's own instance, how personal data is excluded or de-identified, and what happens to trained parameters if the contract ends. The data subject keeps the rights to be informed, to access, to obtain a copy in a readable form, to correct and to have unneeded data destroyed (art. 4, as amended).
4. Testing, acceptance and performance
A contract is binding as written and is performed in good faith, and it also binds the parties as to what the law, custom and the nature of the contract require (Civil Transactions Law, arts. 94 and 95). It cannot be amended except by agreement or under a legal provision (art. 94). For an AI system the terms to write down are the tests the buyer will run before acceptance, the data and accuracy thresholds, the output quality, the response times and the support levels. If a party does not perform, the other may, after notice, demand performance or termination and claim compensation, and a contract can give a right to terminate without a court ruling, though notice is still needed unless the parties expressly agree otherwise (arts. 107 and 108). An acceptance clause that names the tests and the remedy for failing them is the buyer's practical protection.
5. Ownership and intellectual property
Computer programs, data and outputs raise copyright questions that the current Copyright Law and its regulation answer; check their current text before relying on a clause. For an AI purchase, the contract should say who owns the software and models, who owns the buyer's inputs, who owns outputs and fine-tuned models, what licence the buyer gets, for how long and for which territory, and whether the vendor may reuse the buyer's materials. A vague clause leaves the buyer without a written scope to rely on.
6. Liability, suspension and exit
A person is not liable for harm that was caused by a reason beyond his control, such as force majeure or the fault of a third party or the injured party, unless agreed otherwise (Civil Transactions Law, art. 125). If performance of an obligation in a bilateral contract becomes impossible for a reason beyond the debtor's control, the obligation and its counterpart end and the contract terminates automatically (art. 110). If extraordinary events that were unforeseeable make performance excessively onerous, the debtor may invite the other party to negotiate, but that does not allow the debtor to stop performing, and the court may reduce the obligation if no agreement is reached; an agreement to the contrary is void (art. 97). In a contract concluded by adhesion, the court may amend arbitrary conditions or exempt the adhering party, and any contrary agreement is void (art. 96). A person who suffers harm from a breach of the Personal Data Protection Law can claim compensation for material or moral harm before the competent court (art. 40), and everyone who processes personal data must keep its secrets even after the contractual relationship ends (art. 41). An exit clause should provide for return or destruction of data, an export in a readable form, a transition period, access to logs and a rule on suspended service.
7. Critical mistakes
- Signing without a defined purpose, user group and data scope for the system.
- Letting the vendor train its models on personal data without a clear ground, or leaving training rights unmentioned.
- Not naming the vendor's role, its subprocessors and the places where data is hosted or processed.
- Omitting breach notice, security measures and rules on transfer outside the Kingdom.
- Accepting the system without written tests, thresholds and a remedy for failure.
- Leaving ownership of outputs, prompts and fine-tuned models undefined.
- Relying on a standard liability cap or a force majeure clause without checking whether the law makes a contrary term void.
- Signing an auto-renewing subscription with no exit, export or deletion terms.
Worked Example
Hypothetical: a Saudi retail company agrees to buy an annual subscription for SAR 120,000 to an AI customer-service assistant from a foreign vendor. The assistant will read customer chats that contain names, phone numbers and order details.
Before signing, the company writes the purpose into the contract: answering order questions on its own channels. It names the vendor as a processor, lists the vendor's subprocessors, states where data is hosted and bars any transfer outside the Kingdom except as the law allows (arts. 8, 15, 29). It states that the vendor may not train its general models on the company's chat data. The contract sets acceptance tests on a sample of real chats, an accuracy threshold and a remedy if the system fails them (Civil Transactions Law, arts. 94, 95, 107). It says that the company owns its inputs and the outputs and that the vendor holds a licence to its software for twelve months in the Kingdom. Months later the vendor is slow to fix errors. The company gives notice and demands performance, and if the vendor still fails it may demand termination and compensation (art. 107). On exit the vendor returns the chat data in a readable form and destroys its copies, and keeps the company's data confidential (arts. 4, 18, 41).
FAQ
Is there a Saudi law that governs the purchase of an AI system?
This guide uses three general laws: the Personal Data Protection Law, the Civil Transactions Law and the Copyright Law. Check regulations, sector rules and guidance from the competent authority too.
Does the Personal Data Protection Law apply if the vendor is abroad?
It applies to processing in the Kingdom, including processing by a party outside the Kingdom of data about individuals residing in it (art. 2).
Can the vendor train its model on my customers' data?
Only if the purpose is justified. Processing is limited to the purpose of collection, and a change of purpose needs consent or another ground (arts. 5, 6, 10). Say in the contract whether training is allowed at all.
Can I send personal data to a vendor outside the Kingdom?
Only for the listed purposes and on the conditions in article 29: no harm to national security or vital interests, an appropriate level of protection and the minimum data needed.
Who owns what the AI produces?
The contract should say. Any transfer or licence of rights should be in writing and state its scope in time and place; check the current Copyright Law and its regulation for the exact requirements.
Can I leave the contract if the system keeps failing?
After notice, a party can demand performance or termination and claim compensation if the other party does not perform (Civil Transactions Law, art. 107). A termination clause can avoid a court ruling, though notice is still needed unless expressly waived (art. 108).
What happens to my data at the end?
Data no longer needed for its purpose must be destroyed without delay (art. 18, as amended), and everyone who handled the data must keep its secrets after the relationship ends (art. 41). Write the return and deletion steps into the contract.