Pins and skewers are both line tactics. A rook, bishop or queen attacks along a straight line, and two of your pieces stand on that line one behind the other. In a pin, the front piece is worth less than the one behind it, so moving it away would expose the bigger piece, or the king, to capture. In a skewer it is the other way round: the valuable piece is in front, it has to move, and the piece behind it is taken.
Allowing one means your move put your pieces in that line-up. Common versions are a queen in front of her own king on an open file, a king and rook on the same diagonal, a queen and king on the same diagonal as an enemy bishop, or a rook stepping onto a square where it lines up with the king. Often the line is not open yet: one pawn or piece stands in the way, and your opponent opens it with tempo.
Pins against the king are the most severe, because a pinned piece cannot legally move off the line. A pinned piece also stops defending. A knight pinned to its king does not guard anything, so the squares it seemed to cover are open. Many combinations start by pinning a defender and then attacking what it was supposed to protect.
Skewers mostly come with check. The king is attacked, it has to step aside, and the rook or queen behind it falls. Endgames are full of them, because kings and rooks spend a lot of time on open lines there. A king on the same rank as its own rook is a skewer waiting to happen.
The defence is to watch the lines. Before every move, look at the files, ranks and diagonals your king and queen stand on. Is there an enemy rook, bishop or queen that could reach that line? Is there only one piece between them and your king? Then look at where you are putting the piece you move. If it lines up with your king, queen or a loose rook, ask whether the enemy can attack along that line next move.
Breaking a pin early is cheaper than suffering it later. Moving the king or queen off the line, putting a defended piece in between, or attacking the pinning piece with a pawn all work before the pressure builds. Once the pinned piece is attacked by a pawn, it is usually too late.
ChessTensai flags this category when your move set up a pin or skewer that the engine then used. If it shows up often, puzzles on pins and skewers train you to see lines across the whole board, which is exactly the vision that keeps your own pieces off them.