When you purchase a property, a number of expenses that are associated with the purchase are treated as capital expenses. This would include legal fees for conveyancing. This means that you will not be able to get tax relief until a later date when you come to sell the property.
There is a tip that I will share with you as to how you can get some tax relief for these legal costs against rental profits so that you can benefit in the short term
Your conveyancer has two roles when you employ them. Firstly they are employed to act on your behalf in order to purchase the property. Their second role is that they are (usually) also instructed by you to act on behalf of the mortgage lender in order to arrange finance. Importantly finance costs are not capital expenses.
When you instruct a solicitor and are quoted for their legal fees, ask them to apportion their bill based on firstly acting for you as part of the purchase and secondly for acting on behalf of the lender to arrange finance. The latter can be treated as a revenue expense meaning you can get tax relief against rental profits. The picture carousel below shows an example of a purchase I made back in 2015 where I used this trick.