25 Global Tax-Free Countries: Obtain Second Citizenship & Pay No Tax

Leo Kwek

Leo Kwek

Published 2024-01-16 · Updated 2026-08-21 · 23 min read

25 Global Tax-Free Countries: Obtain Second Citizenship & Pay No Tax

As one of the strategies for internationalization and diversified development, some people consider applying for a second citizenship, but it is unrealistic to expect to be exempt from tax obligations through a second passport.

There is no upper limit on the number of passports a U.S. citizen can hold, but no matter how many passports they have, as long as one of them is an American passport, they are obligated to pay taxes to the IRS.

For citizens of other countries such as Australia, the United Kingdom, Canada, and Norway, if they want to avoid paying taxes to their home country, they can choose to live abroad, but they must also meet various specific requirements.

To completely escape tax obligations to their home country, U.S. citizens must first renounce their citizenship. For citizens of other countries, while it may not be necessary to renounce citizenship, becoming a non-tax resident of their home country is not an easy task.

Regardless of where you live, neither your home country’s government nor your country of residence’s government will give up any opportunity to tax you. Therefore, an important method to avoid taxation is to become a tax resident of a tax-free country to keep the maximum amount of your earned income in your own account.

If you want to escape the high tax burden of your home country, moving to a tax-free country and obtaining local residency is a good option, especially if your home country also taxes global income.

Regardless of an individual’s specific circumstances, establishing a second residency in a tax-free country can help increase freedom in terms of taxation.

The following will introduce the specific situations of different types of tax-free countries. If you are considering a second residency in a tax-free country as part of your offshore strategy, it is necessary to understand the actual situation clearly before implementation.

What is a Tax-Free Country?

As part of an international tax optimization strategy, going offshore is often subject to some misunderstandings; some people think it’s easy, while others think it’s difficult.

A common line of thought for those who think going offshore is difficult is that the only way to achieve tax exemption is to move to a country that does not collect any personal income tax. To enjoy the best tax-free policies, one must uproot themselves, give up everything in their home country, and move to a tax haven.

But in reality, it may not be necessary to go this far.

On the other hand, those who think going offshore is easy believe that by simply setting up an offshore company, they can continue to live wherever they want without paying income tax.

In reality, it’s not that simple either.

To enjoy the benefits of going offshore, you need to live outside your home country, achieving a true physical offshore presence.

Some may still believe that they can avoid taxes by constantly changing their country of residence and not staying long-term in any single country. Unfortunately, to combat this behavior, governments have tightened relevant policies, and this method is currently not applicable to citizens of most countries.

Many countries have strict residency tests and requirements that their citizens must pass or meet to shed their tax resident status. In this situation, the best solution is to become a citizen or permanent resident of a tax-free country.

To find a suitable tax-free country, you first need to consider what kind of lifestyle you plan to build and how you will develop your business, ensuring you go to a place you actually want to be while achieving your tax-free goals. In other words, it is not necessary to live in a small, zero-tax country like Monaco.

Of course, if you are genuinely interested in living in Monaco, achieving an offshore and tax-free life is quite simple. Since everyone’s actual situation is different, zero-tax countries are not the right choice for everyone.

There is more than one way to achieve a tax-free life; you can choose to live abroad long-term, obtain a second passport, or explore even more options. Tax strategies vary depending on the country and local policies. Generally, there are several main approaches to achieving a tax-free life:

  1. Zero-Tax Countries: Become a tax resident of a zero-tax country that does not levy income tax or capital gains tax.
  2. Territorial Tax System Countries: Become a resident of a country with a territorial tax system. Under the policies of such countries, you only need to pay taxes on income earned within their borders. As long as you ensure there is no local source income, you can live tax-free.
  3. Lump-Sum Tax Countries: Become a resident of a country that only levies a one-time annual tax. Strictly speaking, these are not tax-free countries, but if the lump-sum tax is considered an upfront cost for foreigners to live there, then after paying this fee, you can live tax-free.
  4. Exemption Policies and Non-Domiciled Countries: Become a resident of a high-tax country and then apply for tax deductions or live there as a non-domiciled resident. In this case, you can live tax-free for a certain period.

The following will provide a detailed introduction to different types of tax-free countries. It should be noted that we have not covered all zero-tax countries in the world. If you are familiar with the series of countries with no income tax previously introduced by Anjia SG, you will know that not all zero-tax countries are suitable as a second home for foreigners.

Living in Tax-Free Countries

The Bahamas

The Bahamas is one of the countries that does not levy income tax because the government can generate revenue from tourism. Once you become a resident of the Bahamas, you do not need to pay tax on income earned anywhere in the world.

Foreigners can choose to enter the Bahamas as a tourist and then apply for temporary or permanent residency within two months of arrival.

The renewal fee for an annually renewable residence permit in the Bahamas is $1,000. Additionally, although not officially stipulated, owning property locally is highly beneficial for residency renewal.

After residing on a temporary basis for more than 20 years, you can apply for a permanent residence permit. If you can’t wait, you can quickly obtain permanent resident status through a real estate investment of at least $750,000 or by creating a company that provides at least one local job.

There is also an accelerated method for the permanent resident application process. By increasing the investment amount to $1.5 million and paying a one-time fee of $10,000, you can ensure a response from the Bahamas Immigration Department within 21 days.

Furthermore, once you purchase property in the Bahamas, you will receive an annually renewed Home Owner’s Card, which will allow you, your spouse, and all minor children to legally reside in the Bahamas.

British Virgin Islands

The British Virgin Islands is a British Overseas Territory that does not levy income tax, capital gains tax, corporate income tax, inheritance or gift tax, land or housing tax, wealth tax, sales tax, or value-added tax, among many other taxes.

Applying for a work visa in the British Virgin Islands can be quite complicated. However, if you are self-sufficient and just want to live in the British Virgin Islands, applying for a visa is quite easy. The only documents required are bank statements. As long as your bank statements show that you have the financial means to support yourself locally, and you pay a $1,000 security deposit, you can obtain a visa in most cases in less than a month.

Brunei

Brunei

The Sultan of Brunei is a world-renowned wealthy individual, so Brunei has little need to attract overseas investors.

However, with a sufficiently large investment, foreigners can obtain residency or permanent resident status in this small country located in the Borneo region of Malaysia. But this is not a cost-effective option.

Cayman Islands

The Cayman Islands enjoy a high reputation in the Caribbean offshore world, but they are not very suitable for the middle class. Just as opening a company in the Cayman Islands requires substantial financial strength, immigrating to the Cayman Islands also requires a large amount of capital.

Specifically, if you want to live on Grand Cayman, the largest of the Cayman Islands, you must prove that you have an annual income of at least nearly $150,000 from outside the Cayman Islands, maintain a deposit of about $500,000 in a Cayman Islands bank account, and make a local investment of $1.2 million, of which $600,000 must be invested in developed real estate projects.

If you want to live on the relatively smaller, less bustling islands, the requirements become correspondingly much lower.

Monaco

Located on the border of France and Italy, Monaco is a world-famous romantic and dream-like city.

Monaco is part of the French Riviera, and its residents can easily travel to other parts of Europe via various modes of transport such as trains, planes, and helicopters.

If you prefer European life over living on a relatively isolated island, Monaco would be the perfect zero-tax country for you. Here, you have the opportunity to build a social circle with the world’s wealthiest people.

To apply for residency in Monaco, you need to provide proof of housing. You can provide a 12-month lease agreement, hold corporate real estate as a company director, or purchase real estate worth over €500,000.

Applicants must also open a bank account in Monaco and deposit at least €500,000 to prove they have sufficient financial means. Additionally, some banks in Monaco have a minimum initial deposit amount of €1 million.

Turks and Caicos Islands

The Turks and Caicos Islands, another British Overseas Territory, has a residency by investment program for foreigners. Under this program, foreigners can obtain a fast-track residence permit by spending at least $300,000 to build a new home or renovate a distressed property locally, or by investing at least $750,000 in a local-majority-owned business.

If your personal circumstances allow for this investment, once you become a resident of the Turks and Caicos Islands, you can enjoy not only zero personal income tax but also various preferential tax policies such as zero corporate tax, zero capital gains tax, zero property tax, and zero inheritance tax.

United Arab Emirates

The UAE is an Arab country and one of the leaders in the oil and gas industry in the Arab region. Foreign businesspeople and investors can obtain a second residency by investing in the UAE and enjoy the benefits of zero income tax.

You can choose to obtain a residence permit and a tax residency certificate by registering and incorporating a company in a UAE free zone. The UAE uses this policy to attract foreign investment. As a foreigner, you need to follow several rules within this policy and maintain a certain number of entries per year to ensure your residency status does not expire.

The cost of establishing a company in the UAE is $4,800. In addition, you must set up an office locally, but to save costs, you can choose to rent a shared office.

Furthermore, investors who invest over 5 million AED (approximately $1.36 million) in real estate in the UAE can obtain a 5-year residence visa; those who make public investments of over 10 million AED (approximately $2.72 million) can obtain a 10-year residence visa.

If you do not wish to invest too much capital when obtaining residency or planning your offshore strategy, the UAE may not be your best choice. However, for entrepreneurs who want to enjoy zero tax at both the corporate and personal levels, the UAE is a good option.

Vanuatu

Vanuatu’s residence permit program for foreigners is straightforward—the more you invest, the longer you can stay.

Foreigners can invest approximately $89,000 in local real estate or a business to obtain a one-year residence visa, which can be renewed annually. For three, five, ten, and even fifteen-year residence permits, there are progressively higher investment thresholds.

Additionally, you need to provide a document from a Vanuatu bank proving you have the financial means to support yourself, with a minimum standard of a monthly income of about $2,200. This amount will double if your residency application includes a spouse or partner.

The investment amount required by Vanuatu’s residence permit program may be slightly higher than what most people imagine, but compared to many other countries mentioned above, Vanuatu’s investment requirements are quite low. Furthermore, there is a wide variety of real estate investment types available locally. If you are interested in this and eager to experience island life in the South Pacific, Vanuatu is worth considering.

Vanuatu is also one of the few tax-free countries where you can obtain citizenship; foreigners can acquire local citizenship through investment.

Living in Territorial Tax System Countries

The following countries only tax the local-source income of citizens and foreigners.

Although most people dislike paying taxes, when tax obligations are unavoidable, it is undeniable that a territorial tax system is the fairest. Under this system, you only need to pay tax on income earned in your country of residence, and foreign income is not within the scope of taxation.

If you become a resident of a territorial tax system country, you must ensure that any income you earn abroad or remit into the country is not deemed as local-source income. If you have any doubts, it is best to consult a tax advisor.

Costa Rica

Costa Rica is a top choice for many retirees and one of the best destinations for American retirees and investors moving outside the United States. It is very suitable for retirees who wish to enjoy a tax-free life abroad.

In recent years, the requirements for Costa Rica’s foreign retiree visa program have become stricter, but as long as you have a monthly retirement income of over $2,500, you can apply to become a local resident.

The downside of Costa Rica may be its bureaucracy, but if you love beaches or tropical jungles, it is worth considering living here.

Georgia

Georgia

Georgia’s global standing is severely underestimated; in fact, Georgia is rapidly moving towards becoming one of the freest economies in the world. To create a better business environment, the government reduced the number of taxes from 21 to 6, and in recent years, this has been further reduced to 5, with tax rates being lowered annually. It has now become one of the few “tax-free” business countries in the world that does not tax foreign income.

Georgia offers a 360-day tourist visa to almost all foreigners, and anyone can open a company in Georgia to apply for a residence permit. Additionally, foreigners who purchase real estate locally are also eligible to apply for residency.

Furthermore, in terms of investment, Georgia’s tax rates typically range from 5% to 15%.

Guatemala

Guatemala is one of the four countries in Central America that implements a territorial tax system. If you are interested in exploring Mayan ruins and life in Central America, Guatemala is worth considering for a residency application.

Obtaining permanent resident status in Guatemala is simple; you just need to provide proof of a monthly income of over $1,250. However, the condition is that you must actually live here for a period of time each year, otherwise your residence permit may be revoked.

Alternatively, you can invest at least $100,000 in the country to obtain a temporary residence permit through an investment program. However, this option is not very cost-effective, as it is clearly more affordable to obtain permanent residency with proof of a $1,250 monthly income.

Foreigners can also apply for citizenship after settling in Guatemala for five years.

Hong Kong

If your financial means allow, you can choose Hong Kong, as it is perhaps the most vibrant city to live in within Asia. As a Special Administrative Region of China, Hong Kong is tightening its policies for banks and companies joining the OECD, but its tax policies remain very friendly.

Hong Kong is certainly not a tax haven, but it implements low tax rates, has relatively low corporate taxes, and offers investors or employees of overseas companies the opportunity to enjoy zero-tax policies.

Hong Kong’s immigrant investor program was canceled in 2015, but entrepreneurs can choose to create a business or participate in a start-up in Hong Kong to prove their ability to make a significant contribution to the Hong Kong economy, thereby obtaining a residence permit.

Macau

Compared to Hong Kong, Macau is less prominent and is seen by most people simply as a gambling destination. Although less known, Macau also has its unique advantages in offshore tax planning. As one of China’s Special Administrative Regions, Macau is only an hour’s ferry ride from Hong Kong, has several excellent banks, and does not tax foreign income.

Previously, investors could apply for a residence permit in Macau through an investment of $375,000, but the application channel for this investment program was closed in 2007.

Like Hong Kong, entrepreneurs can still obtain a residence permit by starting a local company. However, this plan is somewhat difficult to implement in practice. Specifically, you must invest 500,000 MOP (approximately $627,000) in a business, hire yourself as the manager, and then apply for resident status and a work visa. You must prove that you cannot find anyone in Macau to fill the manager position, which can be the biggest challenge in practice.

The initial residence permit is temporary and valid for seven years. If you reside in Macau and become a tax resident, you only need to pay tax on income earned in Macau that exceeds $20,000.

Malaysia

The Malaysia My Second Home program (commonly abbreviated as “MM2H”) is well-suited for entrepreneurs and investors who want to live long-term in Asia but do not prefer Singapore.

The program is very straightforward. Applicants under 50 years of age need to prove a monthly income of $2,400, deposit approximately $72,000 in a Malaysian bank, and demonstrate that they have about $120,000 in liquid assets. Additionally, applicants cannot touch the bank funds for ten years (or until the visa is canceled), unless they plan to purchase real estate in Malaysia. For applicants over 50, the bank deposit requirement is halved.

However, the biggest issue at present is that in August 2020, during the COVID-19 pandemic, the Malaysian government announced the suspension of the MM2H program for a comprehensive review and reassessment by the Ministry of Tourism and related agencies. The Malaysian government restarted the MM2H program in 2021, but the application conditions have been significantly tightened, including requiring applicants to have at least about $210,000 in deposits, $315,000 in liquid assets, and a monthly overseas income of at least $8,600.

Nicaragua

In a country like Nicaragua, detailed tax planning is essential to achieve a tax-free life.

Nicaragua’s economic development is currently behind its southern neighbor, Costa Rica, but it has great potential for growth due to its very open residency policies.

From the beach scenery of San Juan del Sur to the colonial charm of Granada, Nicaragua is suitable for all expatriates interested in its natural beauty or cultural background.

Obtaining a residence permit in Nicaragua is very easy; you only need to provide proof of income, typically requiring about $750 per month. However, you must ensure you reside in the country for six months each year, otherwise your residence permit and the tax benefits from the territorial tax system will be invalidated.

Panama

In some ways, Panama has the strongest offshore banking in Latin America. At the same time, Panama’s immigration policies are becoming increasingly open, especially for citizens of Western countries.

To attract citizens from Western countries to settle, Panama has established the Friendly Nations Visa program, which allows citizens of these countries to apply for permanent resident status without any residency duration restrictions. Other requirements include a minimum deposit of only $5,000 and documents proving “economic ties” in Panama, which usually refers to a Panamanian company or real estate title certificate.

Paraguay

Paraguay is known for its inexpensive second passport program. Foreigners can obtain permanent resident status within a month of entry; after living there for a cumulative three years and providing a bank deposit certificate of only $5,200, they can apply for citizenship.

Paraguay’s appeal to foreigners is twofold: its passport and its low tax rates. The tax on local-source income is quite low, only 10%, while foreign-source income is usually not taxed.

Singapore

Singapore is a tax-free paradise for entrepreneurs and is more suitable for well-capitalized individuals to settle in.

In Singapore, the cost of starting and maintaining a company is much higher than in Hong Kong, but the tax rate on company profits ranges from 0 to 17%. For personal income tax, the highest rate for high-income earners is 22%.

In short, to enjoy life in Singapore, you will pay at least $20,000 to $25,000 in costs annually.

Additionally, investors can apply for residency in Singapore through an investment of about $4 million and enjoy tax-free treatment for bank interest, capital gains, and foreign income.

To learn more about Singapore, you can also consult Anjia SG directly.

Thailand

Thailand implements a territorial tax system and also offers multiple options for obtaining residency. Marrying a local is certainly one option, but more suitable options for foreign investors and businesspeople include the business visa, investor visa, retirement visa, and Thailand Elite visa.

Here is a brief introduction to the different types of visas:

Business Visa: If you operate a company in Thailand, you can apply for a 90-day business visa (NON-B) and then upgrade it to a renewable one-year visa. However, foreigners cannot own more than 50% of the shares in a Thai company.

Investor Visa: With an investment of about $280,000 in stocks, bonds, real estate, or any other type of Thai investment, you are eligible for a temporary visa. As long as you maintain the investment, you can renew it annually.

Retirement Visa: If you are 50 years or older, you can obtain a retirement visa by providing proof of a deposit of 800,000 THB (about $25,600) or a monthly pension or other income source of over 65,000 THB (about $2,080) (or a combination of the two).

Thailand Elite Visa: By paying a fee of $15,000 to $60,000, you can obtain a long-term visa valid for 5, 10, or 20 years and enjoy special benefits such as government concierge services and VIP airport treatment.

Philippines

The Philippines offers one of the lowest age requirements for a global retirement visa. As long as you are 35 years old, you can apply for the Philippine Special Resident Retiree’s Visa (SRRV) and gain the right to live permanently in this tropical paradise.

There are several different investment options to obtain this visa, with the SRRV Classic program being the most popular. If you are between 35 and 49 years old, you can meet the visa qualifications by depositing $50,000 in a local bank. If you are 50 or older, you only need to deposit $10,000, provided you can prove a monthly income of over $800 ($1,000 for a couple).

After holding the visa for 30 days, you can use the deposit for active investments or choose to keep the money in the bank. It should be noted that during the residency period, you must always maintain the bank deposit or investment amount at the level required by the visa.

After obtaining the SRRV, the government will provide you with guidance regarding the Philippine Tax Identification Number (TIN). Once you have a TIN, you will officially become a tax resident of the Philippines and enjoy tax-free remittance of pensions and annuities.

Living in Lump-Sum Tax Countries

Regardless of the tax benefits you will enjoy after becoming a resident, obtaining a residence permit in any country first requires meeting certain requirements and different levels of monetary investment. Every method has some entry barrier, and in lump-sum tax countries, this barrier is the annual flat tax.

For years, some high-tax countries have attracted high-net-worth individuals through special tax regimes. They are not tax-free countries, but if you meet all the conditions, you can obtain a residence permit by paying a fixed lump-sum tax amount each year. If you consider the lump-sum tax as a donation to the government for the privilege of living in such a country, your life there can be considered tax-free. In addition, you usually need to make a certain level of real estate investment and meet a minimum deposit or liquid capital requirement.

The benefit of such programs is that you can enjoy a higher quality of life in lump-sum tax countries. For a simple example, compared to zero-personal-income-tax Dubai, you might prefer to pay some tax to live in a country like Switzerland or Italy.

Currently, you can achieve zero tax on foreign-source income by paying a lump-sum tax in the following countries:

Anguilla

Anguilla is a British Overseas Territory in the Lesser Antilles in the Caribbean, with a small reputation in the fields of offshore trusts and banking. Anguilla has two residency programs, and with Anguilla residency and proper planning, it is not difficult to significantly reduce your taxes.

The first option is to become a permanent resident through a donation ($150,000) or real estate investment ($750,000). The advantage of permanent residency is unlimited stay and a zero income tax rate. If you reside in Anguilla for at least six months a year, you also have the opportunity to become a tax resident.

If you are not interested in living in Anguilla for six months a year, the second option is to pay a lump-sum tax of $75,000 annually. At the same time, you must also purchase property worth $400,000. After meeting these conditions, you only need to reside in Anguilla for 45 days a year to maintain your tax resident status.

Italy

Italy’s residency program is simple—for €100,000 a year, you can obtain Italian residency and be exempt from all other national taxes, local taxes, wealth taxes, and inheritance taxes for that year. Dividends paid by foreign companies are also not taxed, but all income generated within Italy is subject to tax.

This program can be utilized for a period of 15 years.

If you just want to live in Italy long-term, you can also obtain a residence permit through the Golden Visa program, but you will have to pay the normal global income tax rate of 23% to 43%.

Italy also has a residency program for self-sufficient individuals, which levies a flat tax of 7% on all foreign-source income. However, this program has many restrictions, and foreign income taxed at the 7% rate is not eligible for tax credits.

Overall, if you have a high income and want to live in Italy, the lump-sum tax may be your best option.

Gibraltar

If you have about $3 million, you have the opportunity to become a resident of Gibraltar. With Gibraltar’s investor-friendly Category 2 visa, by paying a maximum annual tax of about £28,360, you can earn the right to live at the tip of the Mediterranean.

Similar to the UK’s non-domiciled resident program, Gibraltar’s Category 2 residents are not subject to a progressive tax system. Although you still have to pay some tax, it is a worthwhile deal to exchange a fixed price within your psychological expectations for residency in a European jurisdiction with a relatively high international status.

Furthermore, Gibraltar implements a territorial tax system, which means any foreign-source income is not taxed.

Greece

Greece has modeled its lump-sum tax system after Italy’s. To obtain tax residency in this Mediterranean paradise, you also need to pay €100,000.

Applicants to this program are protected from double taxation and are exempt from reporting requirements and tax obligations on their foreign-source income.

Switzerland

If you can support yourself through savings and overseas investment income, you can choose to obtain a residence permit in Switzerland by paying a lump-sum tax of at least 400,000 Swiss francs.

The specific amount of the lump-sum tax varies depending on individual asset details. You must first disclose all your assets to the Swiss government, which will then use this information to calculate your annual “housing rent.” This figure multiplied by 7 will be the amount of your lump-sum tax.

However, this program is currently only implemented in the non-German-speaking regions of Switzerland. Other disadvantages of the program include the high cost of living and the fact that you still have to bear inheritance tax, wealth tax, and some capital gains taxes.

Zero-Tax Living

If you just want to live a tax-free life for a period and are undecided about whether it is necessary to change your nationality or apply for permanent residency in another country, you can choose to apply for a residence permit in a country that offers tax exemption policies or allows you to become a non-domiciled resident. Such countries include Portugal, the United Kingdom, Ireland, Cyprus, and Malta.

However, implementation can be somewhat difficult because the policies related to non-domiciled residents in the aforementioned countries are gradually being tightened. After overcoming various difficulties and trying to meet the corresponding conditions, you may find that you cannot truly achieve a tax-free life in the end.

For example, previously, the foreign-source pensions of non-habitual residents in Portugal were tax-free, but in recent years, Portugal has amended its tax law, and this portion of income is now subject to a 10% tax.

If you want to enjoy a tax-free life through tax exemption policies, the best choice might be Uruguay, as it has a tax exemption policy for many specific types of income. As long as your monthly income meets certain requirements, you can apply for local residency and enjoy a few years of tax-free living. For this reason, Uruguay is known as the “Switzerland of Latin America.”

Regardless of which country you choose, you must meet unique circumstances and conditions to ensure the smooth implementation of your tax-free offshore strategy.

If you have any questions about obtaining a second identity and establishing a personal tax optimization plan, feel free to contact Anjia SG.

 

For further enquiries, please get in touch:

WeChat: sgleokwek
Telegram: sgleokwek
WhatsApp: Message us

Leo Kwek

Leo Kwek

Leo Kwek is a real estate salesperson registered with Singapore’s Council for Estate Agencies (CEA registration no. RES R061721D), specialising in private residential purchases and mortgage financing. Leo has closed more than 60 property transactions totalling over S$210 million in value, for more than 20 high-net-worth and ultra-high-net-worth clients and families. As a co-founder of Homeland Shires, Leo also helps overseas buyers and new arrivals with settling-in support.

    Contact Us

    Which service are you enquiring about?
    How did you find us?
    How can we help you?

    SHL Consulting Pte. Ltd.

    111 Somerset Road, #05-13 TripleOne Somerset,
    Singapore 238164

    Company Reg. No.: 202316378R

    A member of the Homeland Shires group (parent company, UEN 202415649Z) | Sister company: 3RISE (UEN 202233555K, 50 Chin Swee Road #08-02, Singapore 169874)

    CEA Reg. No.: R061721D