Publishing a book is the best way, in my opinion, to earn passive income from writing. If you publish your book on KDP or Ingram Spark, for instance, you will receive royalties every time a book sells- whether you are sleeping or on holiday!