You can castle.
This king should not move through an attacked square and must not end up in check.
So here, both conditions are satisfied!
Queen Side Castling
I know of this incident where Victor Korchnoi asked the arbiter to clarify the situation: in the Candidates Final Match versus Karpov in 1974 in Game 21, Korchnoi desired to castle at move 18 and was indeed able to do so. However, it was not actually queenside castling.
If you need help, please contact our Help and Support team.
Today I was playing a game of chess on a board with my dad. We came to a point where I wanted to castle on the queen side in a similar position to this one. My father said I was unable to since the rook moved through the attacked square b8, however I thought that since the King wasn't moving through an attacked square, I could. What rule says one of us is right?