Hi,
If you purchased a license for Windows 7 or 8/8.1 and upgraded to Windows 10, are you trying to use that same key for Windows 11? Please be aware that Microsoft has disabled the use of keys originating from Windows 7 or 8/8.1 for Windows 11 activation; only keys that originally came from a free Windows 10 upgrade can be used.
Alternatively,
If you purchased a Windows 10 key and are trying to use it for Windows 11—provided it is a 25-character key—you can attempt an offline activation.
If you haven't noted down your current key, download "ShowKeyPlus" to retrieve it (if you have already entered it during installation):
https://apps.microsoft.com/detail/9pkvzcprx9nv?hl=en-US&gl=US
Once you have the key, disconnect your PC from the network. Open the Command Prompt (as an Administrator) and run the command slmgr /upk to uninstall the current key. Ensure you remain disconnected from the internet and restart your PC.
Afterward, go to the Start menu > Settings > System > Activation > Change product key. Enter your 25-character key and check if it activates.
If it is a digital license:
https://support.microsoft.com/en-us/windows/activation/reactivating-windows-after-a-hardware-change
If this does not work, you will need to contact Microsoft Support, as only a Microsoft agent can perform a manual activation.
The best way to contact Microsoft is via the home chat support. Access the link below and type "Office." You will then see an option for "Contact Support."
Enter your details to start the chat, and a Microsoft agent will assist you.
https://support.microsoft.com/home/contact
Please consider rating this response (by accepting the answer or otherwise), and feel free to visit the Microsoft Q&A community if you have any further questions.
Thanks