This part of GOV.UK is being rebuilt – find out what beta means

HMRC internal manual

International Manual

UK residents with foreign income or gains: dividends

Determination of rates of foreign underlying tax - general

Where underlying tax is to be taken into account for tax credit purposes, the rate of foreign tax on the foreign dividend should be ascertained in accordance with the guidance at INTM164440 onwards.

For further detail see:

INTM161120 Foreign tax credit relief: basic rules - exceptions to the source rule
INTM164060 Dividends: direct investors - underlying tax
INTM164360 Dividends: unilateral relief - underlying tax
INTM167370 Corporation tax: dividends - underlying tax

Where relief is due for direct tax only see INTM162520 for evidence required of the foreign tax paid.