The UK’s biggest tech firms have generated a significant share of the country’s profits for more than a decade.
Edinburgh-based IT firm Infosys is the biggest, accounting for 43% of total profits in 2017.
It’s followed by Microsoft (18%), Microsoft Business Solutions (13%) and Infosynth (10%).
In Scotland, the two biggest technology companies are Scottish Water (14%) and Aberdeen-based engineering firm ITG (13%).
In total, those firms generated nearly 80% of the Scottish economy’s total revenues in 2017, according to data from the Scottish government’s National Accounts.
Infosys earned a record $3.65bn last year and employs more than 40,000 people.
The IT giant also operates in several other countries, including the US, China and Russia.
The company is based in Edinburgh, but it has branches in Edinburgh-Glasgow, Aberdeen and Edinburgh-Firth.
Microsoft’s business in Scotland was also strong last year, earning $1.9bn.
That’s down slightly from the previous year but it’s still the biggest in the country, accounting a total of $5.9 billion.
Microsoft Business Solutions was the company that attracted the most revenue from its US offices, accounting $4.4bn, followed by Infosy, with $3bn.
Infosecurity and cybersecurity firm Kaspersky Lab is the second biggest business in the UK, with more than $2.3bn in revenue.
It is the largest technology company in the world, with sales of more than £25bn.
It also has branches throughout Europe.
Kaspersky said its Scottish subsidiary was worth more than Microsoft’s UK division, with about £1.2bn in sales.
Microsoft has been under fire in the US over the years, with allegations that it rigged its systems for sales.
It has also been hit by the scandal surrounding the hacking of its systems.
The investigation into the US’s alleged attempts to steal data from Microsoft is ongoing.
In the US the company is facing charges of breaching the Computer Fraud and Abuse Act (CFAA), which is a federal crime that could carry up to five years in prison.
Microsoft has denied any wrongdoing and is expected to face an appeal in the court of appeals.