Enchantments are special bonuses or assets that can be applied to armor, tools or weapons through the use of an enchantment table, or an anvil if you have enchanted books. Enchanted books can be acquired via trading, fishing, finding them in generated structures, or by placing a book in an Enchantment Table.
Enchanting in Minecraft is a game mechanism that players can utilize to their advantage in order to apply powerful effects not normally found on specific tools by default; these effects are called “enchantments”.
Enchantments are typically applied on items through the usage of a special block called an enchantment . The first step in enchanting is to make an enchantment table. This requires a book, 2 diamonds, and 4 obsidian blocks. In order to gather obsidian, you will need a diamond pickaxe.
For more information, checkout Minecraft Enchantments and How to enchant in Minecraft