mind to elaborate what the difference is?
PE rules (permanent establishment) is about where a company does business or is managed. That could be an office, but it could also be something else. According to a tax lawyer I once spoke to, it could even be a server under certain circumstances, or a billboard.
If you manage your Malta company from
Spain or if you sign contracts in Spain or work in Spain for Spanish customers over a longer time, there will most likely be a PE. And that PE is taxable like a Spanish company. So from a tax perspective, it will be as if you had two companies, one in Spain and one in Malta. In this case it doesn’t even matter if there is substance in Malta or not because you have simply created a PE in Spain. The only way to avoid this would be to have substance (=employees, a physical office, ...) in Malta and make sure that no work is carried out and no management takes place in Spain. You only need the substance to explain that there is no PE in Spain (where the owner of the company lives), to show that the company really operating in Malta, otherwise they won’t believe you anyway and just say that it’s all done from Spain. It doesn’t matter at all how much taxes the company would be paying in Malta.
CFC rules usually apply to companies with mostly passive income only, and which lack substance, and where you have a considerable tax advantage. Typically, all three conditions must be met. Like a company in a low-tax country that only holds IP or shares or licenses.
Say you have a company in Malta which is ordinarily resident there. It owns a trademark. A company in Spain that is part of the same group (same owner) wants to use the the trademark and pays €1M every year for the license to use the trademark. The Malta company does “nothing” except own the trademark. There is no office (only a secretary service) and no employees except a nominee director who gets paid €500 a year. You fly to Malta twice a year to sign some contracts. In this case, there is (probably) no PE in Spain because the company simply doesn’t do anything. It’s not operating in Spain at all. But it lacks substance, it has mostly passive income and the company pays way less taxes than it would in Spain. It’s a typical example of a CFC. In this case, if the owner lives in Spain, he will pay taxes in Spain for the company, even though the company doesn’t do anything in Spain.